mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
Shift the exception mask in the right position.
This commit is contained in:
parent
26a96aaeb4
commit
07ce00df82
@ -32,7 +32,7 @@ feholdexcept (fenv_t *envp)
|
||||
fpsr = envp->status_register & ~FE_ALL_EXCEPT;
|
||||
__asm__ __volatile__ ("fmove%.l %0,%/fpsr" : : "dm" (fpsr));
|
||||
/* And set all exceptions to non-stop. */
|
||||
fpcr = envp->control_register & ~(FE_ALL_EXCEPT << 5);
|
||||
fpcr = envp->control_register & ~(FE_ALL_EXCEPT << 6);
|
||||
__asm__ __volatile__ ("fmove%.l %0,%!" : : "dm" (fpcr));
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user