mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +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
|
#else
|
||||||
#include <i386/fpu_control.h>
|
#include <i386/fpu_control.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef _FPU_SETCW
|
||||||
|
{
|
||||||
|
fpu_control_t cw = 0x1372;
|
||||||
|
_FPU_SETCW(cw);
|
||||||
|
}
|
||||||
|
#else
|
||||||
__setfpucw(0x1372);
|
__setfpucw(0x1372);
|
||||||
|
#endif
|
||||||
PyOS_setsig(SIGFPE, handler);
|
PyOS_setsig(SIGFPE, handler);
|
||||||
|
|
||||||
/*-- NeXT -----------------------------------------------------------------*/
|
/*-- NeXT -----------------------------------------------------------------*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue