summaryrefslogtreecommitdiff
path: root/Python/pymath.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-04-18 20:17:52 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-04-18 20:17:52 +0000
commit7abf8d4066e9b4dd21f9a498427ac1ec8914c0ab (patch)
tree354e670eb1de034ee884818039a97f0141544961 /Python/pymath.c
parent153c70f6d770f69314cc3f95ab240e2d9bcaf959 (diff)
downloadcpython-git-7abf8d4066e9b4dd21f9a498427ac1ec8914c0ab.tar.gz
The SSE2 detection and enabling could potentially cause
problems for binary distributions of Python in situations where the build machine has SSE2 but the target machine does not. Therefore, don't enable SSE2 instructions automatically on x86.
Diffstat (limited to 'Python/pymath.c')
-rw-r--r--Python/pymath.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Python/pymath.c b/Python/pymath.c
index a5c0dd9414..db2920ce20 100644
--- a/Python/pymath.c
+++ b/Python/pymath.c
@@ -13,8 +13,7 @@ double _Py_force_double(double x)
}
#endif
-#ifdef USING_X87_FPU
-# ifdef HAVE_GCC_ASM_FOR_X87
+#ifdef HAVE_GCC_ASM_FOR_X87
/* inline assembly for getting and setting the 387 FPU control word on
gcc/x86 */
@@ -29,9 +28,6 @@ void _Py_set_387controlword(unsigned short cw) {
__asm__ __volatile__ ("fldcw %0" : : "m" (cw));
}
-# else
-# error "Unable to get and set x87 control word"
-# endif
#endif