summaryrefslogtreecommitdiff
path: root/numpy/core/include
diff options
context:
space:
mode:
authorSayed Adel <seiko@imavr.com>2020-10-18 12:03:17 +0000
committerSayed Adel <seiko@imavr.com>2020-12-26 16:32:04 +0000
commitb16288698742e7593db61cf9a618e2d03de6b36e (patch)
tree301ed276b9eca8d18c7ffc9eae2fb0db9c9699e2 /numpy/core/include
parent098a3b417dbb3c620e423e29f194585b68882d5e (diff)
downloadnumpy-b16288698742e7593db61cf9a618e2d03de6b36e.tar.gz
SIMD: Replace raw SIMD of sin/cos with NPYV
The new code improves the performance of non-contiguous memory access for the output array without any reduction in performance. For PPC64LE the performance increased by 2-3.0, and 1.5-2.0 on aarch64.
Diffstat (limited to 'numpy/core/include')
-rw-r--r--numpy/core/include/numpy/npy_math.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/numpy/core/include/numpy/npy_math.h b/numpy/core/include/numpy/npy_math.h
index 7d71c36cc..f32e298f0 100644
--- a/numpy/core/include/numpy/npy_math.h
+++ b/numpy/core/include/numpy/npy_math.h
@@ -151,15 +151,6 @@ NPY_INPLACE npy_longlong npy_rshiftll(npy_longlong a, npy_longlong b);
NPY_INPLACE npy_longlong npy_lshiftll(npy_longlong a, npy_longlong b);
/*
- * avx function has a common API for both sin & cos. This enum is used to
- * distinguish between the two
- */
-typedef enum {
- npy_compute_sin,
- npy_compute_cos
-} NPY_TRIG_OP;
-
-/*
* C99 double math funcs
*/
NPY_INPLACE double npy_sin(double x);