summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDeveloper-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com>2022-09-16 11:05:56 -0700
committerDeveloper-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com>2023-01-04 02:19:18 -0800
commitc070aa599a6c40e8c8e56c50f108deb7d991c67b (patch)
tree99171d0b51e89b02c57422552428351b23f11aaf /numpy
parentf57879ebf622dc5b8ae0f06bdca041893904114e (diff)
downloadnumpy-c070aa599a6c40e8c8e56c50f108deb7d991c67b.tar.gz
Resolve linux 32 failures
We don't see these failures but CI is hitting them, attempting to resolve
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/umath/loops_unary_fp.dispatch.c.src9
1 files changed, 7 insertions, 2 deletions
diff --git a/numpy/core/src/umath/loops_unary_fp.dispatch.c.src b/numpy/core/src/umath/loops_unary_fp.dispatch.c.src
index fba3e23c8..543402f6f 100644
--- a/numpy/core/src/umath/loops_unary_fp.dispatch.c.src
+++ b/numpy/core/src/umath/loops_unary_fp.dispatch.c.src
@@ -111,8 +111,13 @@ static NPY_INLINE npyv_u@ssfx@
npyv_isnan_@sfx@(npyv_@sfx@ v)
{
// (v != v) >> (size - 1)
- npyv_@sfx@ r = npyv_cvt_@sfx@_b@ssfx@(npyv_cmpneq_@sfx@(v, v));
- 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
+ npyv_u@ssfx@ r = npyv_cmpneq_@sfx@(v, v);
+#else
+ npyv_u@ssfx@ r = npyv_cvt_u@ssfx@_b@ssfx@(npyv_cmpneq_@sfx@(v, v));
+#endif
+ return npyv_shri_u@ssfx@(r, (sizeof(npyv_lanetype_@sfx@)*8)-1);
}
static NPY_INLINE npyv_u@ssfx@