diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-01-04 01:01:12 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-01-04 01:01:12 (GMT) |
commit | 5a571639fcd687224f7b8b18093f50368bdced0e (patch) | |
tree | 1c3b7917862bff70645f2b29f17bb35ebe164c5c /Modules | |
parent | 5ab366119e5daef31e20d3826128a1d70b9ff83c (diff) | |
download | cpython-5a571639fcd687224f7b8b18093f50368bdced0e.zip cpython-5a571639fcd687224f7b8b18093f50368bdced0e.tar.gz cpython-5a571639fcd687224f7b8b18093f50368bdced0e.tar.bz2 |
Patch #103012: Update fpectlmodule for current glibc;
The _setfpucw() function/macro doesn't seem to exist any more;
instead there's an _FPU_SETCW macro.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/fpectlmodule.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/fpectlmodule.c b/Modules/fpectlmodule.c index 8034489..ff3ea76 100644 --- a/Modules/fpectlmodule.c +++ b/Modules/fpectlmodule.c @@ -195,7 +195,14 @@ static void fpe_reset(Sigfunc *handler) #else #include <i386/fpu_control.h> #endif +#ifdef _FPU_SETCW + { + fpu_control_t cw = 0x1372; + _FPU_SETCW(cw); + } +#else __setfpucw(0x1372); +#endif PyOS_setsig(SIGFPE, handler); /*-- NeXT -----------------------------------------------------------------*/ |