summaryrefslogtreecommitdiff
path: root/numpy/random/src
diff options
context:
space:
mode:
authorKevin Sheppard <kevin.k.sheppard@gmail.com>2019-05-19 23:32:38 +0100
committermattip <matti.picus@gmail.com>2019-05-20 19:00:38 +0300
commit720a0a9a6baa3cb0ded826933807b2be061bfe2c (patch)
tree167ba9d8a7dc7cba451967032b7c200413cf5095 /numpy/random/src
parentb42a5ca0a076b40c612014dc540ca5f9bcf10f41 (diff)
downloadnumpy-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.h6
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."