std::experi...::simd::size(3)
π std::experi...::simd::size(3) π
okay bestie, this one comes from the C++ Standard Libary β yes, "Libary" is exactly how the manual name is spelled up top and we are not fixing it, periodt. The page is all about std::experimental::simd::size, and the vibe is very "how wide is my SIMD, bestie?" π
πΈ NAME πΈ
std::experimental::simd::size - std::experimental::simd::size
β¨ Synopsis β¨
static constexpr size_t size() noexcept; (parallelism TS v2)
Returns the width (the number of values) of simd<T, Abi>. π
π Example π
The actual output depends on target and compiler flags. No cap.
// Run this code
#include <experimental/simd>
#include <cstdint>
#include <iostream>
namespace stdx = std::experimental;
int main()
{
stdx::native_simd<std::int32_t> a = 1;
std::cout << a.size() << '\n';
std::cout << reduce(a) << '\n';
}
π Possible output: π
16
16
π¦ See also π¦
simd_size(parallelism TS v2) β obtains the number of elements of a given element type andABI tag(class template).size[static](parallelism TS v2) β returns the width / number of elements (public static member function ofstd::experimental::simd_mask<T,Abi>).
okay that's the whole page, bestie! source: http://cppreference.com Β· date/version: 2024.06.10 Β· page: std::experi...::simd::size(3) β slay, bye! πβ¨
π¦ 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