|
inlineconstexpr |
Computes the arithmetic left/right shift operation according to shift sign.
Defined in Header
Parameters
Return value
The value of the arithmetic left/right shift operation according to shift sign is returned
rshl(x, n)
is equivalent to if_else(n>0, shl(x, n), shr(x, n))
if x
is an simd value.N
is the size in bits of the element type of T
, all elements of n must belong to the interval: ]-N, N[
or the result is undefined.rshl(x, n)
is equivalent to x << n
if x
is an simd value.Masked Call
The call eve::rshl[mask](x, ...)
provides a masked version of rshl
which is equivalent to if_else(mask, rshl(x, ...), x)
Example