|
native 0.0.1
Vectors, masks and wide register packs for C++26
|
Classes | |
| struct | native::mask_lane< U > |
| struct | native::predicate< N, Arch > |
| struct | native::mask_traits< simd< T, N, Arch > > |
| struct | native::mask_traits< predicate< N, Arch > > |
| struct | native::mask_traits< mask_lane< U > > |
| struct | native::predicate< N, Arch > |
| struct | native::simd< bool, N, Arch > |
Functions | |
| template<class U, class T, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && simd_mask_element<U> && simd_mask_element<T> && requires { typename simd<U,N,Arch> ::native_type; typename simd<T,N,Arch>::native_type; } | |
| constexpr simd< U, N, Arch > | native::mask_cast (simd< T, N, Arch > value) noexcept |
| template<class T, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && simd_mask_element<T> && ::native::detail::avx512_backend::predicate_shape<N> && requires { typename simd<T,N,Arch>::native_type; } | |
| constexpr predicate< N, Arch > | native::to_predicate (simd< T, N, Arch > value) noexcept |
| template<class T, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && simd_mask_element<T> && ::native::detail::avx512_backend::predicate_shape<N> && requires { typename simd<T,N,Arch>::native_type; } | |
| constexpr simd< T, N, Arch > | native::to_vector_mask (predicate< N, Arch > value) noexcept |
| template<simd_integer_element T, std::size_t N, class M, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) &&(::native::detail::avx512_backend::integer_shape<T, N> && ::native::detail::avx512_backend::integer_mask_for<M, T, N, Arch>) | |
| constexpr simd< T, N, Arch > | native::select (M m, simd< T, N, Arch > a, simd< T, N, Arch > b) |
| template<simd_integer_element T, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::integer_shape<T, N> | |
| constexpr simd< T, N, Arch > | native::bit_select (simd< T, N, Arch > bits, simd< T, N, Arch > a, simd< T, N, Arch > b) noexcept |
| template<simd_integer_element T, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::integer_shape<T, N> | |
| constexpr simd< T, N, Arch > | native::select (simd< T, N, Arch > bits, simd< T, N, Arch > a, simd< T, N, Arch > b) |
| template<simd_mask_element M, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) | |
| constexpr auto | native::mask_bits (simd< M, N, Arch > m) noexcept |
| template<simd_integer_element T, simd_mask_element M, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) &&(sizeof(T) == sizeof(M)) | |
| constexpr simd< std::make_unsigned_t< T >, N, Arch > | native::mask_bits (simd< M, N, Arch > m) noexcept |
| template<simd_integer_element T, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && requires(predicate<N,Arch> m) { to_vector_mask <::native::detail::avx512_backend::mask_lane_for<T>>(m); } | |
| constexpr simd< std::make_unsigned_t< T >, N, Arch > | native::mask_bits (predicate< N, Arch > m) noexcept |
| template<simd_integer_element T, std::size_t N, class M, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) &&(::native::detail::avx512_backend::integer_shape<T, N> && ::native::detail::avx512_backend::integer_mask_for<M, T, N, Arch>) | |
| constexpr simd< T, N, Arch > | native::masked_add (M m, simd< T, N, Arch > prior, simd< T, N, Arch > a, simd< T, N, Arch > b) noexcept |
| template<simd_integer_element T, std::size_t N, class M, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) &&(::native::detail::avx512_backend::integer_shape<T, N> && ::native::detail::avx512_backend::integer_mask_for<M, T, N, Arch>) | |
| constexpr simd< T, N, Arch > | native::masked_add_zero (M m, simd< T, N, Arch > a, simd< T, N, Arch > b) noexcept |
| template<simd_integer_element T, std::size_t N, class M, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) &&(::native::detail::avx512_backend::integer_shape<T, N> && ::native::detail::avx512_backend::integer_mask_for<M, T, N, Arch>) | |
| constexpr simd< T, N, Arch > | native::masked_sub (M m, simd< T, N, Arch > prior, simd< T, N, Arch > a, simd< T, N, Arch > b) noexcept |
| template<simd_integer_element T, std::size_t N, class M, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) &&(::native::detail::avx512_backend::integer_shape<T, N> && ::native::detail::avx512_backend::integer_mask_for<M, T, N, Arch>) | |
| constexpr simd< T, N, Arch > | native::masked_sub_zero (M m, simd< T, N, Arch > a, simd< T, N, Arch > b) noexcept |
| template<simd_integer_element T, std::size_t N, class M, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) &&(::native::detail::avx512_backend::integer_shape<T, N> && ::native::detail::avx512_backend::integer_mask_for<M, T, N, Arch>) | |
| constexpr simd< T, N, Arch > | native::masked_mul (M m, simd< T, N, Arch > prior, simd< T, N, Arch > a, simd< T, N, Arch > b) noexcept |
| template<simd_integer_element T, std::size_t N, class M, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) &&(::native::detail::avx512_backend::integer_shape<T, N> && ::native::detail::avx512_backend::integer_mask_for<M, T, N, Arch>) | |
| constexpr simd< T, N, Arch > | native::masked_mul_zero (M m, simd< T, N, Arch > a, simd< T, N, Arch > b) noexcept |
Comparisons produce V::mask. Use that type instead of assuming that every architecture stores a full register of zero/all-one lanes. Mask reductions inspect logical lanes only; padding in short vectors is not part of a result.
|
inlinenodiscardconstexprnoexcept |
Select individual bits: (bits & a) | (~bits & b); no mask canonicalization.
Definition at line 3304 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Expand lane truth into unsigned integer zero/all-one words; preserve the lane count.
Definition at line 3344 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Expand lane truth into unsigned integer zero/all-one words; preserve the lane count.
Definition at line 3337 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Expand lane truth into unsigned integer zero/all-one words; preserve the lane count.
Definition at line 3324 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Change full-mask lane width without changing lane truth or lane count.
Definition at line 838 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Add modulo the lane width in active lanes, retaining prior elsewhere.
Definition at line 3351 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Add modulo the lane width in active lanes and zero inactive lanes.
Definition at line 3365 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Multiply modulo the lane width in active lanes, retaining prior elsewhere.
Definition at line 3393 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Multiply modulo the lane width in active lanes and zero inactive lanes.
Definition at line 3407 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Subtract modulo the lane width in active lanes, retaining prior elsewhere.
Definition at line 3372 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Subtract modulo the lane width in active lanes and zero inactive lanes.
Definition at line 3386 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Choose a in true lanes and b in false lanes; both operands are evaluated.
Definition at line 3285 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Choose a in true lanes and b in false lanes; both operands are evaluated.
Definition at line 3317 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Compress full-vector truth into a supported compact predicate.
Definition at line 845 of file simd_family.h.
|
inlinenodiscardconstexprnoexcept |
Expand a predicate to canonical zero/all-one lanes of mask element T.
Definition at line 867 of file simd_family.h.