We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 274af7d commit 89862daCopy full SHA for 89862da
numpy/core/src/umath/loops_unary_fp.dispatch.c.src
@@ -111,8 +111,13 @@ static NPY_INLINE npyv_u@ssfx@
111
npyv_isnan_@sfx@(npyv_@sfx@ v)
112
{
113
// (v != v) >> (size - 1)
114
- npyv_@sfx@ r = npyv_cvt_@sfx@_b@ssfx@(npyv_cmpneq_@sfx@(v, v));
115
- return npyv_shri_u@ssfx@(npyv_reinterpret_u@ssfx@_@sfx@(r), (sizeof(npyv_lanetype_@sfx@)*8)-1);
+#if defined(NPY_HAVE_SSE2) || defined (NPY_HAVE_SSE41)
+ // sse npyv_cmpneq_@sfx@ define includes a cast already
116
+ npyv_u@ssfx@ r = npyv_cmpneq_@sfx@(v, v);
117
+#else
118
+ npyv_u@ssfx@ r = npyv_cvt_u@ssfx@_b@ssfx@(npyv_cmpneq_@sfx@(v, v));
119
+#endif
120
+ return npyv_shri_u@ssfx@(r, (sizeof(npyv_lanetype_@sfx@)*8)-1);
121
}
122
123
static NPY_INLINE npyv_u@ssfx@
0 commit comments