Function core::arch::wasm::i32x4_trunc_sat_f32x4

1.54.0 · source · []
pub fn i32x4_trunc_sat_f32x4(a: v128) -> v128
Available on target_family="wasm" and target feature simd128 only.
Expand description

Converts a 128-bit vector interpreted as four 32-bit floating point numbers into a 128-bit vector of four 32-bit signed integers.

NaN is converted to 0 and if it’s out of bounds it becomes the nearest representable intger.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.