From 7abf8d4066e9b4dd21f9a498427ac1ec8914c0ab Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Sat, 18 Apr 2009 20:17:52 +0000 Subject: 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. --- Python/pymath.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Python/pymath.c') diff --git a/Python/pymath.c b/Python/pymath.c index a5c0dd94148..db2920ce209 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 -- cgit v1.2.3