Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::experi...x_fixed_size(3) C++ Standard Libarystd::experi...x_fixed_size(3)

NAME
       std::experimental::simd_abi::max_fixed_size	-      std::experimen-
       tal::simd_abi::max_fixed_size

Synopsis
	  Defined in header <experimental/simd>
	  template< class T >
	  inline	constexpr	  int	      max_fixed_size	     =
       (parallelism TS v2)
	  /*implementation-defined*/;

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

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

Example
       // Run this code

	#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';
	}

Possible output:
	32 32 32 32

See also
	  fixed_size	      tag type for storing specified  number  of  ele-
       ments
	  (parallelism TS v2) (alias template)

http://cppreference.com		  2024.06.10	 std::experi...x_fixed_size(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::experimental::simd_abi::max_fixed_size&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help