Intel xvec
Experimental C++ simd class library
Loading...
Searching...
No Matches
xvec::simd::detail::mask_traits< _Vendor, _Bytes, _Np > Struct Template Reference

#include <core.hpp>

Public Types

using element_container_type = detail::container_for_num_bytes<_Bytes>
using element_signed_container_type = detail::make_signed_t<element_container_type>
using signed_vec_for_mask = vec<element_signed_container_type, _Np>
using unsigned_vec_for_mask = vec<element_container_type, _Np>
using compact_builtin_type = __uint128_t
using builtin_type

Static Public Member Functions

static constexpr builtin_type truncate_to_size (builtin_type m)
static constexpr auto to_register (const builtin_type &m) noexcept

Static Public Attributes

static constexpr int internalNp = std::bit_ceil(std::max<unsigned>(8, _Np))
static constexpr auto all_bits_set = (_Np == 128) ? ~compact_builtin_type() : ((compact_builtin_type(1) << _Np) - 1)

Detailed Description

template<typename _Vendor, std::size_t _Bytes, simd_size_type _Np>
struct xvec::simd::detail::mask_traits< _Vendor, _Bytes, _Np >

Traits for generic mask types which use a standard vector register to represent the mask.

Member Typedef Documentation

◆ builtin_type

template<typename _Vendor, std::size_t _Bytes, simd_size_type _Np>
using xvec::simd::detail::mask_traits< _Vendor, _Bytes, _Np >::builtin_type
Initial value:
std::conditional_t<has_compact_mask<_Vendor>, compact_builtin_type, typename vec_traits<_Vendor, element_container_type, _Np>::builtin_type>
Definition core.hpp:451

The documentation for this struct was generated from the following file: