Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::simd_abi::max_fixed_size

      From cppreference.com
      <cpp‎ |experimental‎ |simd
       
       
       
       
       
      Defined in header<experimental/simd>
      template<class T>
      constexprint max_fixed_size=/*implementation-defined*/;
      (parallelism TS v2)

      The value ofmax_fixed_size<T> declares that an instance ofsimd<T, fixed_size<N>> withN<= max_fixed_size<T> is supported by the implementation. The value ofmax_fixed_size<T> is at least32.

      [edit]Notes

      It is unspecified whether an implementation supportssimd<T, fixed_size<N>> withN> max_fixed_size<T>. The value ofmax_fixed_size<T> may depend on compiler flags and may change between different compiler versions.

      [edit]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<longdouble><<'\n';}

      Possible output:

      32 32 32 32

      [edit]See also

      (parallelism TS v2)
      tag type for storing specified number of elements
      (alias template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/simd/max_fixed_size&oldid=176490"

      [8]ページ先頭

      ©2009-2026 Movatter.jp