std::experi..._abi::scalar(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay bestie, this is the manual page for std::experimental::simd_abi::scalar β€” and the NAME line is literally std::experimental::simd_abi::scalar - std::experimental::simd_abi::scalar, so yes, it’s giving β€œI contain myself” main character energy 😭. The page title up top is std::experi..._abi::scalar(3), and it comes from the C++ Standard Libary manual (spelled β€œLibary” in the header, iykyk, not me fixing it πŸ’…).

✨ Synopsis ✨

Defined in header <experimental/simd>:

using scalar = /*unspecified*/;        (parallelism TS v2)

So with the scalar ABI tag, data-parallel types are equivalent to a single element type. However, the full simd and simd_mask interface is supported and thus eases development of generic code 🫢✨.

🧚 Notes 🧚

vibe check / important note: scalar is not an alias to fixed_size<1>. That’s the whole note, bestie β€” don’t let anyone gaslight you into thinking otherwise πŸ’€.

πŸ¦‹ See also πŸ¦‹

  • fixed_size β€” tag type for storing specified number of elements (parallelism TS v2) (alias template)
  • compatible β€” tag type that ensures ABI compatibility (parallelism TS v2) (alias template)
  • native β€” tag type that is most efficient (parallelism TS v2) (alias template)
  • deduce β€” obtains an ABI type for given element type and number of elements (parallelism TS v2) (class template)
  • deduce_t β€” the original see-also block literally has deduce_t elements sitting there, with (parallelism TS v2) (class template) nearby; I’m keeping it visible and not inventing a cleaner description 🫢

okay bestie, that’s the page! source/version/date tea: http://cppreference.com β€” 2024.06.10 β€” std::experi..._abi::scalar(3). byeeeee πŸ’–βœ¨

πŸ“¦ where this page comes from