mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Patch for the DEC Alpha under Linux, by Lee Busby.
This commit is contained in:
parent
67c4cb1f13
commit
9b1a80baf4
1 changed files with 8 additions and 0 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue