MCPcopy Create free account
hub / github.com/numpy/numpy / npyv_round_s32_f32

Function npyv_round_s32_f32

numpy/core/src/common/simd/vec/conversion.h:231–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229// round to nearest integer (assuming even)
230#if NPY_SIMD_F32
231 NPY_FINLINE npyv_s32 npyv_round_s32_f32(npyv_f32 a)
232 { return npyv__trunc_s32_f32(vec_rint(a)); }
233#endif
234NPY_FINLINE npyv_s32 npyv_round_s32_f64(npyv_f64 a, npyv_f64 b)
235{ return npyv__trunc_s32_f64(vec_rint(a), vec_rint(b)); }

Callers

nothing calls this directly

Calls 1

npyv__trunc_s32_f32Function · 0.85

Tested by

no test coverage detected