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.
| 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. |
| 111 | NPY_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 | } |
| 117 | NPY_FINLINE npyv_f64 npyv_minp_f64(npyv_f64 a, npyv_f64 b) |
| 118 | { |
| 119 | __m128i nn = npyv_notnan_f64(b); |
nothing calls this directly
no test coverage detected