Intel xvec
Experimental C++ simd class library
Loading...
Searching...
No Matches
C++26: Mask conversions

Convert masks to vectors and packed-bit representations. More...

Functions

constexpr xvec::simd::basic_mask< _Bytes, _Abi >::operator typename traits::signed_vec_for_mask () const
 Convert the mask to a signed integral vector. Each output element is 1 if the corresponding mask element is true, or 0 otherwise.
constexpr std::bitset< size()> xvec::simd::basic_mask< _Bytes, _Abi >::to_bitset () const noexcept
 Return a bitset containing the value of each mask element.
constexpr unsigned long long xvec::simd::basic_mask< _Bytes, _Abi >::to_ullong () const

Detailed Description

Convert masks to vectors and packed-bit representations.

See also
https://eel.is/c++draft/simd.mask.conv

Function Documentation

◆ to_ullong()

template<std::size_t _Bytes, typename _Abi>
unsigned long long xvec::simd::basic_mask< _Bytes, _Abi >::to_ullong ( ) const
inlineconstexpr

Return an unsigned integral representation of the mask elements. Elements beyond the width of unsigned long long must be false.