diff options
| author | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2019-03-29 13:24:33 -0700 |
|---|---|---|
| committer | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2019-04-19 10:47:15 -0700 |
| commit | e1417a31e8d6c67faab160761d80602eb40154b4 (patch) | |
| tree | 5f2b33075da1531c5dcbf1bd684f0221997215c2 /numpy/core/src | |
| parent | 651e03c0019d4c4c6ca8c43cb7d7c0d344a72cc1 (diff) | |
| download | numpy-e1417a31e8d6c67faab160761d80602eb40154b4.tar.gz | |
BUG: Fixing incomplete guards for @ISA@_exp/log_FLOAT functions
Added a missing NPY_HAVE_SSE2_INTRINSICS guard
Diffstat (limited to 'numpy/core/src')
| -rw-r--r-- | numpy/core/src/umath/loops.c.src | 2 | ||||
| -rw-r--r-- | numpy/core/src/umath/simd.inc.src | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/umath/loops.c.src b/numpy/core/src/umath/loops.c.src index 8a9cc58ab..ff3b36428 100644 --- a/numpy/core/src/umath/loops.c.src +++ b/numpy/core/src/umath/loops.c.src @@ -1599,7 +1599,7 @@ FLOAT_@func@(char **args, npy_intp *dimensions, npy_intp *steps, void *NPY_UNUSE NPY_NO_EXPORT NPY_GCC_OPT_3 void FLOAT_@func@_@isa@(char **args, npy_intp *dimensions, npy_intp *steps, void *NPY_UNUSED(data)) { -#if defined @CHK@ +#if defined @CHK@ && defined NPY_HAVE_SSE2_INTRINSICS @ISA@_@func@_FLOAT((npy_float*)args[1], (npy_float*)args[0], dimensions[0]); #else /* diff --git a/numpy/core/src/umath/simd.inc.src b/numpy/core/src/umath/simd.inc.src index 9e491b407..9a96ec3f4 100644 --- a/numpy/core/src/umath/simd.inc.src +++ b/numpy/core/src/umath/simd.inc.src @@ -126,7 +126,7 @@ abs_ptrdiff(char *a, char *b) */ /* prototypes */ -#if defined HAVE_ATTRIBUTE_TARGET_@ISA@_WITH_INTRINSICS +#if defined HAVE_ATTRIBUTE_TARGET_@ISA@_WITH_INTRINSICS && defined NPY_HAVE_SSE2_INTRINSICS /**begin repeat1 * #func = exp, log# |
