std::experimental::simd_abi::max_fixed_size

Header: <experimental/simd>

The value of max_fixed_size declares that an instance of simd<T, fixed_size> with N <= max_fixed_size is supported by the implementation. The value of max_fixed_size is at least 32.

# Declarations

template< class T >
constexpr int max_fixed_size = /*implementation-defined*/;

(parallelism TS v2)

# Notes

It is unspecified whether an implementation supports simd<T, fixed_size> with N > max_fixed_size. The value of max_fixed_size may depend on compiler flags and may change between different compiler versions.

# Example

#include <cstdint>
#include <experimental/simd>
#include <iostream>
namespace stq = std::experimental;
 
int main()
{
    std::cout << stq::simd_abi::max_fixed_size<std::uint8_t> << ' ';
    std::cout << stq::simd_abi::max_fixed_size<std::uint64_t> << ' ';
    std::cout << stq::simd_abi::max_fixed_size<float> << ' ';
    std::cout << stq::simd_abi::max_fixed_size<long double> << '\n';
}

# See also