diff options
author | das <das@FreeBSD.org> | 2004-06-11 02:35:30 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2004-06-11 02:35:30 +0000 |
commit | 388fd1cd29b7a6f04f04de635025c5a39a3dd68a (patch) | |
tree | d740b80aaac6ae1eecc12aa376c8b190088eb2c9 /lib/msun/ia64 | |
parent | a19b0e4d1e3b376b44d11080c2613bbe3ea7db42 (diff) | |
download | FreeBSD-src-388fd1cd29b7a6f04f04de635025c5a39a3dd68a.zip FreeBSD-src-388fd1cd29b7a6f04f04de635025c5a39a3dd68a.tar.gz |
Shift the FPSR contents by the correct amount so feupdateenv() raises
the correct exceptions from the old environment.
Diffstat (limited to 'lib/msun/ia64')
-rw-r--r-- | lib/msun/ia64/fenv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/ia64/fenv.c b/lib/msun/ia64/fenv.c index 0777acc..95a5809 100644 --- a/lib/msun/ia64/fenv.c +++ b/lib/msun/ia64/fenv.c @@ -44,6 +44,6 @@ feupdateenv(const fenv_t *envp) __stfpsr(&fpsr); __ldfpsr(*envp); - feraiseexcept(fpsr & FE_ALL_EXCEPT); + feraiseexcept((fpsr >> _FPUSW_SHIFT) & FE_ALL_EXCEPT); return (0); } |