std::experi...x_fixed_size(3)
π NAME π
hey bestie, welcome to the std::experi...x_fixed_size(3) page from the C++ Standard Libary manual β¨
std::experimental::simd_abi::max_fixed_size - std::experimental::simd_abi::max_fixed_size β yep, the original NAME line really does repeat the same name after the dash, and we're keeping both, no erasing π
β¨ 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, and that's the tea β
π§ Notes π§
Okay so here's the vibe check: it is unspecified whether an implementation supports simd<T, fixed_size<N>> with N > max_fixed_size<T>. Also, the value of max_fixed_size<T> may depend on compiler flags and may change between different compiler versions. It's giving "implementation-defined main character energy," so yeah β that's the situation, fr fr π
π§ͺ Example π§ͺ
Run this code, bestie:
#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 elements (parallelism TS v2) (alias template) πΈ
π that's the whole page! source: http://cppreference.com, date/version: 2024.06.10, footer title: std::experi...x_fixed_size(3). mwah, go slay your SIMD era π§β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms