summaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/dbl-64/e_exp2.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-10-18 09:59:04 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-18 09:59:04 -0400
commit4855e3ddf5061dd8ddcefafc7185f6f70937434b (patch)
tree7e29eb6e22a1dda9a7133e577787ac9f9b6c17e7 /sysdeps/ieee754/dbl-64/e_exp2.c
parent23ce5627803ad1e6686355965cd68bb23d05fb28 (diff)
downloadglibc-4855e3ddf5061dd8ddcefafc7185f6f70937434b.tar.gz
Provide combined internal feholdexcept/fesetround interface
Diffstat (limited to 'sysdeps/ieee754/dbl-64/e_exp2.c')
-rw-r--r--sysdeps/ieee754/dbl-64/e_exp2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_exp2.c b/sysdeps/ieee754/dbl-64/e_exp2.c
index 734e476ce5..0b7330aace 100644
--- a/sysdeps/ieee754/dbl-64/e_exp2.c
+++ b/sysdeps/ieee754/dbl-64/e_exp2.c
@@ -64,11 +64,7 @@ __ieee754_exp2 (double x)
union ieee754_double ex2_u, scale_u;
fenv_t oldenv;
- libc_feholdexcept (&oldenv);
-#ifdef FE_TONEAREST
- /* If we don't have this, it's too bad. */
- libc_fesetround (FE_TONEAREST);
-#endif
+ libc_feholdexcept_setround (&oldenv, FE_TONEAREST);
/* 1. Argument reduction.
Choose integers ex, -256 <= t < 256, and some real