Skip to main content

__msa_ftq_h

Function __msa_ftq_h 

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

Vector Floating-Point Convert to Fixed-Point

The elements in vector a (four 32-bit floating point numbers) and b (four 32-bit floating point numbers) are down-converted to a fixed-point representation, i.e. from 64-bit floating-point to 32-bit Q31 fixed-point representation, or from 32-bit floating-point to 16-bit Q15 fixed-point representation. The result is written to vector (eight signed 16-bit integer numbers).