Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.72 KB

vec4.md

File metadata and controls

21 lines (16 loc) · 1.72 KB

sd::vec4_ (type family)

Defined in header <simdee/vec4.hpp>

sd::vec4_ is an architecture-independent type family of vectors that contain 4 scalars.

type width scalar_t satisfies concepts
sd::vec4b 4 sd::bool32_t SIMDVector, SIMDVectorB
sd::vec4f 4 float SIMDVector, SIMDVectorF
sd::vec4u 4 std::uint32_t SIMDVector, SIMDVectorU
sd::vec4s 4 std::int32_t SIMDVector, SIMDVectorS

The vec4 family is an alias for another type family, based on supported instruction sets:

type if sse is supported if neon is supported otherwise
sd::vec4b is an alias for sd::sseb sd::neonb sd::dual<sd::dual<sd::dumb>>
sd::vec4f is an alias for sd::ssef sd::neonf sd::dual<sd::dual<sd::dumf>>
sd::vec4u is an alias for sd::sseu sd::neonu sd::dual<sd::dual<sd::dumu>>
sd::vec4s is an alias for sd::sses sd::neons sd::dual<sd::dual<sd::dums>>