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

Function npyv_minp_f32

numpy/core/src/common/simd/sse/math.h:111–116  ·  view source on GitHub ↗

Minimum, supports IEEE floating-point arithmetic (IEC 60559), - If one of the two vectors contains NaN, the equivalent element of the other vector is set - Only if both corresponded elements are NaN, NaN is set.

Source from the content-addressed store, hash-verified

109// - If one of the two vectors contains NaN, the equivalent element of the other vector is set
110// - Only if both corresponded elements are NaN, NaN is set.
111NPY_FINLINE npyv_f32 npyv_minp_f32(npyv_f32 a, npyv_f32 b)
112{
113 __m128i nn = npyv_notnan_f32(b);
114 __m128 min = _mm_min_ps(a, b);
115 return npyv_select_f32(nn, min, a);
116}
117NPY_FINLINE npyv_f64 npyv_minp_f64(npyv_f64 a, npyv_f64 b)
118{
119 __m128i nn = npyv_notnan_f64(b);

Callers

nothing calls this directly

Calls 2

npyv_select_f32Function · 0.85
npyv_notnan_f32Function · 0.70

Tested by

no test coverage detected