summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDeveloper-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com>2022-11-28 14:28:50 -0800
committerDeveloper-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com>2022-11-28 14:28:50 -0800
commitfe4a3bda33f8f4800eaec298ad710812c855edf2 (patch)
tree55cd84345054889451800eb43b3e2cde2aa00329 /numpy
parent3ec127267bc4de0e3199f63b129464daf6f0c6c9 (diff)
downloadnumpy-fe4a3bda33f8f4800eaec298ad710812c855edf2.tar.gz
Remove duplicated contiguous case for 'negative'
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/umath/loops_unary.dispatch.c.src10
1 files changed, 1 insertions, 9 deletions
diff --git a/numpy/core/src/umath/loops_unary.dispatch.c.src b/numpy/core/src/umath/loops_unary.dispatch.c.src
index 3ee84ea68..1e2a81d20 100644
--- a/numpy/core/src/umath/loops_unary.dispatch.c.src
+++ b/numpy/core/src/umath/loops_unary.dispatch.c.src
@@ -300,15 +300,7 @@ NPY_NO_EXPORT void NPY_CPU_DISPATCH_CURFX(@TYPE@_@kind@)
if (TO_SIMD_SFX(npyv_loadable_stride)(istride) &&
TO_SIMD_SFX(npyv_storable_stride)(ostride))
{
- if (istride == 1 && ostride == 1) {
- // contiguous input and output
- // should've already been handled above already
- TO_SIMD_SFX(simd_unary_cc_@intrin@)(
- (STYPE*)ip, (STYPE*)op, len
- );
- goto clear;
- }
- else if (istride == 1 && ostride != 1) {
+ if (istride == 1 && ostride != 1) {
// contiguous input, non-contiguous output
TO_SIMD_SFX(simd_unary_cn_@intrin@)(
(STYPE*)ip, (STYPE*)op, ostride, len