Commit fcd94f78 authored by Guido van Rossum's avatar Guido van Rossum

Patch for the DEC Alpha under Linux, by Lee Busby.

parent 2bf015a6
...@@ -180,6 +180,14 @@ static void fpe_reset(Sigfunc *handler) ...@@ -180,6 +180,14 @@ static void fpe_reset(Sigfunc *handler)
ieee_set_fp_control(fp_control); ieee_set_fp_control(fp_control);
PyOS_setsig(SIGFPE, handler); 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 ----------------------------------------------------------*/ /*-- Cray Unicos ----------------------------------------------------------*/
#elif defined(cray) #elif defined(cray)
/* UNICOS delivers SIGFPE by default, but no matherr */ /* UNICOS delivers SIGFPE by default, but no matherr */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment