Intel xvec
Experimental C++ simd class library
Loading...
Searching...
No Matches
Bit reversal

Reverse the bits within each vector element. More...

Functions

template<vec_unsigned_integer _Vp>
constexpr _Vp xvec::simd::bit_reverse (const _Vp &x) noexcept
 Reverse the bits within each element.

Detailed Description

Reverse the bits within each vector element.

Proposed in P3772R0.

See also
https://wg21.link/P3772

Function Documentation

◆ bit_reverse()

template<vec_unsigned_integer _Vp>
_Vp xvec::simd::bit_reverse ( const _Vp & x)
constexprnoexcept

Reverse the bits within each element.

Template Parameters
_VpThe input vector type.
Parameters
xThe input vector.
Returns
A vector containing the bit-reversed elements.