diff options
author | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-05-19 23:32:38 +0100 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-05-20 19:00:38 +0300 |
commit | 720a0a9a6baa3cb0ded826933807b2be061bfe2c (patch) | |
tree | 167ba9d8a7dc7cba451967032b7c200413cf5095 /numpy/random/src | |
parent | b42a5ca0a076b40c612014dc540ca5f9bcf10f41 (diff) | |
download | numpy-720a0a9a6baa3cb0ded826933807b2be061bfe2c.tar.gz |
BLD: Use numpy detection of SSE
Let numpy detect SSE2
Diffstat (limited to 'numpy/random/src')
-rw-r--r-- | numpy/random/src/dsfmt/dSFMT.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/random/src/dsfmt/dSFMT.h b/numpy/random/src/dsfmt/dSFMT.h index 224d0108f..75ef5746f 100644 --- a/numpy/random/src/dsfmt/dSFMT.h +++ b/numpy/random/src/dsfmt/dSFMT.h @@ -41,6 +41,12 @@ extern "C" { #include <assert.h> #include <stdio.h> +/* Use NumPy config to determine if SSE2 is present */ +#include "numpy/npy_common.h" +#if defined NPY_HAVE_SSE2_INTRINSICS +#define HAVE_SSE2 1 +#endif + #if !defined(DSFMT_MEXP) #ifdef __GNUC__ #warning "DSFMT_MEXP is not defined. I assume DSFMT_MEXP is 19937." |