summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeveloper-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com>2022-12-06 23:11:21 -0800
committerDeveloper-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com>2022-12-06 23:11:21 -0800
commitae849e57de21ae43d0b9abeb360e5ce026833d89 (patch)
treeaaa4a97a7eba5d91792890ba047feab074cb13ac
parentb067a4264e56ae5fa285286898f2df1c7ca2ad4a (diff)
downloadnumpy-ae849e57de21ae43d0b9abeb360e5ce026833d89.tar.gz
Fix smoke test running without NPY_SIMD
-rw-r--r--numpy/core/src/umath/loops_logical.dispatch.c.src31
1 files changed, 18 insertions, 13 deletions
diff --git a/numpy/core/src/umath/loops_logical.dispatch.c.src b/numpy/core/src/umath/loops_logical.dispatch.c.src
index 4d4b717c5..9a75f9de8 100644
--- a/numpy/core/src/umath/loops_logical.dispatch.c.src
+++ b/numpy/core/src/umath/loops_logical.dispatch.c.src
@@ -194,19 +194,6 @@ simd_@kind@_BOOL(npy_bool * op, npy_bool * ip, npy_intp len)
*op = (*ip @op@ 0);
}
}
-
-static NPY_INLINE int
-run_unary_simd_@kind@_BOOL(char **args, npy_intp const *dimensions, npy_intp const *steps)
-{
-#if NPY_SIMD
- if (sizeof(npy_bool) == 1 &&
- IS_BLOCKABLE_UNARY(sizeof(npy_bool), NPY_SIMD_WIDTH)) {
- simd_@kind@_BOOL((npy_bool*)args[1], (npy_bool*)args[0], dimensions[0]);
- return 1;
- }
-#endif
- return 0;
-}
/**end repeat**/
#undef npyv_reduce_min_u8
@@ -252,6 +239,24 @@ run_reduce_simd_@kind@_BOOL(char **args, npy_intp const *dimensions, npy_intp co
/**end repeat**/
/**begin repeat
+ * #kind = logical_not, absolute#
+ */
+static NPY_INLINE int
+run_unary_simd_@kind@_BOOL(char **args, npy_intp const *dimensions, npy_intp const *steps)
+{
+#if NPY_SIMD
+ if (sizeof(npy_bool) == 1 &&
+ IS_BLOCKABLE_UNARY(sizeof(npy_bool), NPY_SIMD_WIDTH)) {
+ simd_@kind@_BOOL((npy_bool*)args[1], (npy_bool*)args[0], dimensions[0]);
+ return 1;
+ }
+#endif
+ return 0;
+}
+/**end repeat**/
+
+
+/**begin repeat
* #kind = logical_and, logical_or#
* #OP = &&, ||#
* #SC = ==, !=#