summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-20 23:50:01 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-20 23:50:01 (GMT)
commite85da651dd8141039efeca243907a4d91755b527 (patch)
tree4e61de38e7c38d93386609654a0ba1eaf4482f5d /Modules
parent9476a78c1e310ecea0ceb953e36ec7e2d8f67856 (diff)
downloadcpython-e85da651dd8141039efeca243907a4d91755b527.zip
cpython-e85da651dd8141039efeca243907a4d91755b527.tar.gz
cpython-e85da651dd8141039efeca243907a4d91755b527.tar.bz2
Some patches to Lee Busby's fpectl mods that accidentally didn't make it
into 1.5a4.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/fpectlmodule.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/fpectlmodule.c b/Modules/fpectlmodule.c
index b0ba9db..5e21680 100644
--- a/Modules/fpectlmodule.c
+++ b/Modules/fpectlmodule.c
@@ -180,9 +180,8 @@ static void fpe_reset(Sigfunc *handler)
/*-- Linux ----------------------------------------------------------------*/
#elif defined(linux)
- /* Linux delivers SIGFPE by default,
- except for log(0), atanh(-1), 0.^0.
- */
+#include <i386/fpu_control.h>
+ __setfpucw(0x1372);
signal(SIGFPE, handler);
/*-- NeXT -----------------------------------------------------------------*/