diff options
author | Richard Henderson <rth@twiddle.net> | 2012-03-10 08:55:53 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2012-03-19 06:49:44 -0700 |
commit | eb92c487b35e26aa1e08815c4480d0bc5cc9f370 (patch) | |
tree | 99b3d94fcac1b61ea4c23f5575c109508db5e590 /sysdeps/ieee754/dbl-64/e_exp.c | |
parent | 7d2e8012cfb4fa30086ef330ef1b993cfcc3dd99 (diff) | |
download | glibc-eb92c487b35e26aa1e08815c4480d0bc5cc9f370.tar.gz glibc-eb92c487b35e26aa1e08815c4480d0bc5cc9f370.tar.xz glibc-eb92c487b35e26aa1e08815c4480d0bc5cc9f370.zip |
Create and use SET_RESTORE_ROUND{,_NOEX,_53BIT}{,F,L}.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/e_exp.c')
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_exp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_exp.c b/sysdeps/ieee754/dbl-64/e_exp.c index cb8d9e8d9d..5deba5e445 100644 --- a/sysdeps/ieee754/dbl-64/e_exp.c +++ b/sysdeps/ieee754/dbl-64/e_exp.c @@ -59,10 +59,9 @@ __ieee754_exp(double x) { int4 k; #endif int4 i,j,m,n,ex; - fenv_t env; double retval; - libc_feholdexcept_setround (&env, FE_TONEAREST); + SET_RESTORE_ROUND (FE_TONEAREST); junk1.x = x; m = junk1.i[HIGH_HALF]; @@ -157,7 +156,6 @@ __ieee754_exp(double x) { else { retval = __slowexp(x); goto ret; } } ret: - libc_feupdateenv (&env); return retval; } #ifndef __ieee754_exp |