summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/lowlevel_strided_loops.c.src6
1 files changed, 2 insertions, 4 deletions
diff --git a/numpy/core/src/multiarray/lowlevel_strided_loops.c.src b/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
index 5c02c6e9f..bfa7ca224 100644
--- a/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
+++ b/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
@@ -21,12 +21,10 @@
#include "lowlevel_strided_loops.h"
/*
- * x86 platform may work with unaligned access, except when the
- * compiler uses aligned SSE instructions, which gcc does in some
- * cases. This is disabled for the time being.
+ * x86 platform works with unaligned access
*/
#if (defined(NPY_CPU_X86) || defined(NPY_CPU_AMD64))
-# define NPY_USE_UNALIGNED_ACCESS 0
+# define NPY_USE_UNALIGNED_ACCESS 1
#else
# define NPY_USE_UNALIGNED_ACCESS 0
#endif