diff options
author | Developer-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com> | 2022-09-27 10:17:01 -0700 |
---|---|---|
committer | Developer-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com> | 2022-12-06 17:22:07 -0800 |
commit | f144c8935b8f138633f679607279c03c89256039 (patch) | |
tree | be69cd441e4a98584c36b4d2e74c2db096aec7d0 | |
parent | 94d4eae56eb1d92d4053b11d3853e9987e2fe517 (diff) | |
download | numpy-f144c8935b8f138633f679607279c03c89256039.tar.gz |
Update numpy/core/src/umath/loops_logical.dispatch.c.src
Co-authored-by: Sayed Adel <seiko@imavr.com>
-rw-r--r-- | numpy/core/src/umath/loops_logical.dispatch.c.src | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/numpy/core/src/umath/loops_logical.dispatch.c.src b/numpy/core/src/umath/loops_logical.dispatch.c.src index 3a1b6b3aa..f060d12c8 100644 --- a/numpy/core/src/umath/loops_logical.dispatch.c.src +++ b/numpy/core/src/umath/loops_logical.dispatch.c.src @@ -20,37 +20,6 @@ ** Extra SIMD intrinsics ******************************************************************************/ -#if NPY_SIMD -#if !defined(NPY_HAVE_SSE2) -#define USE_NPYV_REDUCE_MINMAX -#endif - -#if defined(NPY_HAVE_ASIMD) && defined(__aarch64__) - #define npyv_reduce_min_u8 vminvq_u8 - #define npyv_reduce_max_u8 vmaxvq_u8 -#elif defined(USE_NPYV_REDUCE_MINMAX) - // Scalar intrinsics - #define scalar_max_i(A, B) ((A > B) ? A : B) - #define scalar_min_i(A, B) ((A < B) ? A : B) - - /**begin repeat - * #intrin = min, max# - */ - NPY_FINLINE npyv_lanetype_u8 npyv_reduce_@intrin@_u8(npyv_u8 v) - { - npyv_lanetype_u8 NPY_DECL_ALIGNED(NPY_SIMD_WIDTH) s[npyv_nlanes_u8]; - npyv_storea_u8(s, v); - npyv_lanetype_u8 result = s[0]; - for(int i=1; i<npyv_nlanes_u8; ++i){ - result = scalar_@intrin@_i(result, s[i]); - } - return result; - } - /**end repeat**/ - #undef scalar_max_i - #undef scalar_min_i -#endif -#endif // NPY_SIMD /******************************************************************************* ** Defining the SIMD kernels |