Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 531846 | Differences between
and this patch

Collapse All | Expand All

(-)a/mozilla-release/toolkit/xre/nsSigHandlers.cpp (-4 / +4 lines)
Lines 152-158 Link Here
152
  status->__invalid = status->__denorm = status->__zdiv = status->__ovrfl = status->__undfl =
152
  status->__invalid = status->__denorm = status->__zdiv = status->__ovrfl = status->__undfl =
153
    status->__precis = status->__stkflt = status->__errsumm = 0;
153
    status->__precis = status->__stkflt = status->__errsumm = 0;
154
154
155
  __uint32_t *mxcsr = &uc->uc_mcontext->__fs.__fpu_mxcsr;
155
  uint32_t *mxcsr = &uc->uc_mcontext->__fs.__fpu_mxcsr;
156
  *mxcsr |= SSE_EXCEPTION_MASK; /* disable all SSE exceptions */
156
  *mxcsr |= SSE_EXCEPTION_MASK; /* disable all SSE exceptions */
157
  *mxcsr &= ~SSE_STATUS_FLAGS; /* clear all pending SSE exceptions */
157
  *mxcsr &= ~SSE_STATUS_FLAGS; /* clear all pending SSE exceptions */
158
#endif
158
#endif
Lines 172-184 Link Here
172
  *sw &= ~FPU_STATUS_FLAGS;
172
  *sw &= ~FPU_STATUS_FLAGS;
173
#endif
173
#endif
174
#if defined(__amd64__)
174
#if defined(__amd64__)
175
  __uint16_t *cw = &uc->uc_mcontext.fpregs->cwd;
175
  uint16_t *cw = &uc->uc_mcontext.fpregs->cwd;
176
  *cw |= FPU_EXCEPTION_MASK;
176
  *cw |= FPU_EXCEPTION_MASK;
177
177
178
  __uint16_t *sw = &uc->uc_mcontext.fpregs->swd;
178
  uint16_t *sw = &uc->uc_mcontext.fpregs->swd;
179
  *sw &= ~FPU_STATUS_FLAGS;
179
  *sw &= ~FPU_STATUS_FLAGS;
180
180
181
  __uint32_t *mxcsr = &uc->uc_mcontext.fpregs->mxcsr;
181
  uint32_t *mxcsr = &uc->uc_mcontext.fpregs->mxcsr;
182
  *mxcsr |= SSE_EXCEPTION_MASK; /* disable all SSE exceptions */
182
  *mxcsr |= SSE_EXCEPTION_MASK; /* disable all SSE exceptions */
183
  *mxcsr &= ~SSE_STATUS_FLAGS; /* clear all pending SSE exceptions */
183
  *mxcsr &= ~SSE_STATUS_FLAGS; /* clear all pending SSE exceptions */
184
#endif
184
#endif

Return to bug 531846