[Python-checkins] python/dist/src/Modules fpectlmodule.c,2.14,2.14.24.1
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Thu, 26 Sep 2002 09:53:33 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv18213
Modified Files:
Tag: release22-maint
fpectlmodule.c
Log Message:
Backport of 2.18:
Patch for the DEC Alpha under Linux, by Lee Busby.
Index: fpectlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/fpectlmodule.c,v
retrieving revision 2.14
retrieving revision 2.14.24.1
diff -C2 -d -r2.14 -r2.14.24.1
*** fpectlmodule.c 7 Mar 2001 10:22:20 -0000 2.14
--- fpectlmodule.c 26 Sep 2002 16:53:31 -0000 2.14.24.1
***************
*** 181,184 ****
--- 181,192 ----
PyOS_setsig(SIGFPE, handler);
+ /*-- DEC ALPHA LINUX ------------------------------------------------------*/
+ #elif defined(__alpha) && defined(linux)
+ #include <asm/fpu.h>
+ unsigned long fp_control =
+ IEEE_TRAP_ENABLE_INV | IEEE_TRAP_ENABLE_DZE | IEEE_TRAP_ENABLE_OVF;
+ ieee_set_fp_control(fp_control);
+ PyOS_setsig(SIGFPE, handler);
+
/*-- Cray Unicos ----------------------------------------------------------*/
#elif defined(cray)