summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2013-05-19 17:44:13 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2013-05-25 17:36:00 +0200
commitfe69102dd34619ce18cf074ef0e6e46611bc17e7 (patch)
tree1c6119170ab59068e7535e4882ac5cd36e54a6be /numpy/core/src
parent0adccaaa910ab495e993f453956fd983775604f3 (diff)
downloadnumpy-fe69102dd34619ce18cf074ef0e6e46611bc17e7.tar.gz
MAINT: use sse header macros for einsum sse activation
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/multiarray/einsum.c.src5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/einsum.c.src b/numpy/core/src/multiarray/einsum.c.src
index 2c59533f8..56b1ce746 100644
--- a/numpy/core/src/multiarray/einsum.c.src
+++ b/numpy/core/src/multiarray/einsum.c.src
@@ -17,12 +17,13 @@
#include <numpy/arrayobject.h>
#include <numpy/halffloat.h>
#include <npy_pycompat.h>
+#include <npy_config.h>
#include <ctype.h>
#include "convert.h"
-#ifdef __SSE__
+#ifdef HAVE_XMMINTRIN_H
#define EINSUM_USE_SSE1 1
#else
#define EINSUM_USE_SSE1 0
@@ -31,7 +32,7 @@
/*
* TODO: Only some SSE2 for float64 is implemented.
*/
-#ifdef __SSE2__
+#ifdef HAVE_EMMINTRIN_H
#define EINSUM_USE_SSE2 1
#else
#define EINSUM_USE_SSE2 0