Skip to content
fn

vround_f32

void vround_f32(const float * in, float * out, int n)

Single-precision round-to-nearest-even.

Computes outi=round(ini)\text{out}_i = \mathrm{round}(\text{in}_i) via vvnintf; ties are broken to the nearest even integer (banker's rounding) — same rule as IEEE 754 default rounding mode.

References

Accelerate.framework vvnintf.

Parameters

inconst float*
Input buffer.
outfloat*
Output buffer.
nstd::size_t
Element count.