Skip to main content

__msa_hadd_s_w

Function __msa_hadd_s_w 

Source
pub unsafe fn __msa_hadd_s_w(a: v8i16, b: v8i16) -> v4i32
🔬This is a nightly-only experimental API. (stdarch_mips #111198)
Available on MIPS and target feature msa and (MIPS or MIPS-64) only.
Expand description

Vector Signed Horizontal Add

The sign-extended odd elements in vector a (eight signed 16-bit integer numbers) are added to the sign-extended even elements in vector b (eight signed 16-bit integer numbers) producing a result twice the size of the input operands. The result is written to vector (four signed 32-bit integer numbers).