зеркало из https://github.com/mozilla/pjs.git
Bug 537489 - nsSigHandler.cpp should use _M_IX86 instead of _M_IA32, r=bsmedberg
This commit is contained in:
Родитель
1541fd80c5
Коммит
c6a0b05ac6
|
@ -363,7 +363,7 @@ void InstallSignalHandlers(const char *ProgramName)
|
|||
#define MXCSR(ctx) (ctx)->MxCsr
|
||||
#endif
|
||||
|
||||
#if defined(_M_IA32) || defined(_M_X64)
|
||||
#if defined(_M_IX86) || defined(_M_X64)
|
||||
|
||||
#define X87CW(ctx) (ctx)->FloatSave.ControlWord
|
||||
#define X87SW(ctx) (ctx)->FloatSave.StatusWord
|
||||
|
@ -391,13 +391,13 @@ LONG __stdcall FpeHandler(PEXCEPTION_POINTERS pe)
|
|||
case STATUS_FLOAT_MULTIPLE_FAULTS:
|
||||
case STATUS_FLOAT_MULTIPLE_TRAPS:
|
||||
X87CW(c) |= FPU_EXCEPTION_MASK; /* disable all FPU exceptions */
|
||||
X86SW(c) &= ~FPU_STATUS_FLAGS; /* clear all pending FPU exceptions */
|
||||
#ifdef _M_IA32
|
||||
X87SW(c) &= ~FPU_STATUS_FLAGS; /* clear all pending FPU exceptions */
|
||||
#ifdef _M_IX86
|
||||
if (c->ContextFlags & CONTEXT_EXTENDED_REGISTERS) {
|
||||
#endif
|
||||
MXCSR(c) |= SSE_EXCEPTION_MASK; /* disable all SSE exceptions */
|
||||
MXCSR(c) &= ~SSE_STATUS_FLAGS; /* clear all pending SSE exceptions */
|
||||
#ifdef _M_IA32
|
||||
#ifdef _M_IX86
|
||||
}
|
||||
#endif
|
||||
return EXCEPTION_CONTINUE_EXECUTION;
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#if defined(_M_IA32) || defined(_M_X86) || defined(__i386__) || defined(__amd64__)
|
||||
#if defined(_M_IX86) || defined(__i386__) || defined(__amd64__)
|
||||
|
||||
/*
|
||||
* x87 FPU Control Word:
|
||||
|
|
Загрузка…
Ссылка в новой задаче