pub unsafe fn vec_srv(
a: vector_unsigned_char,
b: vector_unsigned_char
) -> vector_unsigned_char
🔬This is a nightly-only experimental API. (
stdarch_powerpc
#111145)Available on (PowerPC or PowerPC-64) and target feature
power9-altivec
and PowerPC only.Expand description
Vector Shift Right Variable
§Result value
Let v be a 17-byte vector formed from a zero byte in element 0 and the elements of
a in bytes [1:16]
. Then each byte element i of r is determined as follows. The start bit sb is
obtained from bits 5:7 of byte element i of b. Then the contents of bits (8 – sb):(15 – sb) of
the halfword in byte elements i:i+1 of v are placed into byte element i of r.
§Endian considerations
All bit and byte element numbers are specified in big-endian order. This intrinsic is not endian-neutral.