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

Function npyv_reduce_maxp_f64

numpy/core/src/common/simd/vec/math.h:259–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257 return npyv_reduce_min_f64(a);
258 }
259 NPY_FINLINE double npyv_reduce_maxp_f64(npyv_f64 a)
260 {
261 npyv_b64 notnan = npyv_notnan_f64(a);
262 if (NPY_UNLIKELY(!npyv_any_b64(notnan))) {
263 return vec_extract(a, 0);
264 }
265 a = npyv_select_f64(notnan, a, npyv_reinterpret_f64_u64(
266 npyv_setall_u64(0xfff0000000000000)));
267 return npyv_reduce_max_f64(a);
268 }
269#endif
270// round to nearest int even
271#define npyv_rint_f64 vec_rint

Callers

nothing calls this directly

Calls 4

npyv_any_b64Function · 0.85
npyv_select_f64Function · 0.85
npyv_notnan_f64Function · 0.70
npyv_setall_u64Function · 0.50

Tested by

no test coverage detected