Lines 281-290
restoreControlRegs (const ucontext_t & ucon, bool clearExceptions)
Link Here
|
281 |
inline void |
281 |
inline void |
282 |
restoreControlRegs (const ucontext_t & ucon, bool clearExceptions) |
282 |
restoreControlRegs (const ucontext_t & ucon, bool clearExceptions) |
283 |
{ |
283 |
{ |
|
|
284 |
#if defined(__GLIBC__) || defined(__i386__) |
284 |
setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal); |
285 |
setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal); |
|
|
286 |
#else |
287 |
setCw ((ucon.uc_mcontext.fpregs->cwd & cwRestoreMask) | cwRestoreVal); |
288 |
#endif |
285 |
|
289 |
|
286 |
_fpstate * kfp = reinterpret_cast<_fpstate *> (ucon.uc_mcontext.fpregs); |
290 |
_fpstate * kfp = reinterpret_cast<_fpstate *> (ucon.uc_mcontext.fpregs); |
|
|
291 |
#if defined(__GLIBC__) || defined(__i386__) |
287 |
setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions); |
292 |
setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions); |
|
|
293 |
#else |
294 |
setMxcsr (kfp->mxcsr, clearExceptions); |
295 |
#endif |
288 |
} |
296 |
} |
289 |
|
297 |
|
290 |
#endif |
298 |
#endif |