From 44d14ab5bdee2d9a1ec7e3b9c5d41593ac855c54 Mon Sep 17 00:00:00 2001 From: Raghuveer Devulapalli Date: Wed, 29 May 2019 11:52:21 -0700 Subject: MAINT: using an enum to switch between sin/cos --- numpy/core/include/numpy/npy_math.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'numpy/core/include') diff --git a/numpy/core/include/numpy/npy_math.h b/numpy/core/include/numpy/npy_math.h index 7831dd3d7..126b861bf 100644 --- a/numpy/core/include/numpy/npy_math.h +++ b/numpy/core/include/numpy/npy_math.h @@ -177,6 +177,15 @@ NPY_INPLACE npy_long npy_lcml(npy_long a, npy_long b); NPY_INPLACE npy_longlong npy_gcdll(npy_longlong a, npy_longlong b); NPY_INPLACE npy_longlong npy_lcmll(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 */ -- cgit v1.2.1