mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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.
This commit is contained in:
parent
5ab366119e
commit
5a571639fc
1 changed files with 7 additions and 0 deletions
|
@ -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 -----------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue