__shadd8 in core::arch::arm - Rust
Description: Signed halving parallel byte-wise addition.

Skip to main content

## __shadd8

# Function __shadd8

Source

    pub unsafe fn __shadd8(a: int8x4_t, b: int8x4_t) -> int8x4_t

🔬This is a nightly-only experimental API. (`stdarch_arm_dsp` #117237)
Available on ARM and (target feature `v6` and non-target feature `mclass`, or target features `mclass` and `dsp`) only.
Expand description

Signed halving parallel byte-wise addition.

Returns the 8-bit signed equivalent of

res[0] = (a[0] + b[0]) / 2 res[1] = (a[1] + b[1]) / 2 res[2] = (a[2] + b[2]) / 2 res[3] = (a[3] + b[3]) / 2