summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2022-12-28 11:26:14 +0200
committermattip <matti.picus@gmail.com>2022-12-28 13:50:51 +0200
commit8b3056c1a7faca2a781febf87a7c9e5a6829e472 (patch)
treec1d4756a925b32f2eb0f9021882bdce94e5b0cd2
parentef9f35a94f4388ea31ca0bf03e05dab6646b51b8 (diff)
downloadnumpy-8b3056c1a7faca2a781febf87a7c9e5a6829e472.tar.gz
lower limit to 2, improves benchmarks
-rw-r--r--numpy/core/src/umath/loops_arithm_fp.dispatch.c.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/loops_arithm_fp.dispatch.c.src b/numpy/core/src/umath/loops_arithm_fp.dispatch.c.src
index 86f062b93..3b44e16f8 100644
--- a/numpy/core/src/umath/loops_arithm_fp.dispatch.c.src
+++ b/numpy/core/src/umath/loops_arithm_fp.dispatch.c.src
@@ -537,7 +537,7 @@ NPY_NO_EXPORT void NPY_CPU_DISPATCH_CURFX(@TYPE@_@kind@)
*((@type@ *)iop1) = io1;
#endif
}
- else if (dimensions[0] < 4 || !run_binary_simd_@kind@_@TYPE@(args, dimensions, steps)) {
+ else if (dimensions[0] < 2 || !run_binary_simd_@kind@_@TYPE@(args, dimensions, steps)) {
BINARY_LOOP {
const @type@ in1 = *(@type@ *)ip1;
const @type@ in2 = *(@type@ *)ip2;