This repository was archived by the owner on Dec 22, 2021. It is now read-only.
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
Include floating-point rounding instructions #7
Closed
Description
The proposal in #1 doesn't include vectorized versions of the floating-point round-to-integer instructions:
f32x4.ceil(x: v128) -> v128
f32x4.floor(x: v128) -> v128
f32x4.trunc(x: v128) -> v128
f32x4.nearest(x: v128) -> v128
f64x2.ceil(x: v128) -> v128
f64x2.floor(x: v128) -> v128
f64x2.trunc(x: v128) -> v128
f64x2.nearest(x: v128) -> v128
It seems these instructions would be just as useful in vectorized floating-point code as they are in scalar code.
Are these instructions widely available in SIMD instruction sets we care about?