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.
This commit is contained in:
Mark Dickinson 2009-04-18 20:17:52 +00:00
parent 153c70f6d7
commit 7abf8d4066
7 changed files with 47 additions and 280 deletions

View file

@ -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