Function core::arch::mips::__msa_aver_u_b
source · pub unsafe fn __msa_aver_u_b(a: v16u8, b: v16u8) -> v16u8
🔬This is a nightly-only experimental API. (
stdsimd
#48556)Available on (MIPS or MIPS-64) and target feature
msa
and MIPS only.Expand description
Vector Unsigned Average Rounded
The elements in vector a
(sixteen unsigned 8-bit integer numbers)
are added to the elements in vector b
(sixteen unsigned 8-bit integer numbers).
The addition of the elements plus 1 (for rounding) is done unsigned with full precision,
i.e. the result has one extra bit.
Unsigned division by 2 (or logical shift right by one bit) is performed before
writing the result to vector (sixteen unsigned 8-bit integer numbers).