aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/libm-ieee754/e_expf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754/e_expf.c')
-rw-r--r--sysdeps/libm-ieee754/e_expf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/libm-ieee754/e_expf.c b/sysdeps/libm-ieee754/e_expf.c
index ff6357bd1d..e8a9c9d874 100644
--- a/sysdeps/libm-ieee754/e_expf.c
+++ b/sysdeps/libm-ieee754/e_expf.c
@@ -87,7 +87,9 @@ __ieee754_expf (float x)
fenv_t oldenv;
feholdexcept (&oldenv);
+#ifdef FE_TONEAREST
fesetround (FE_TONEAREST);
+#endif
/* Calculate n. */
n = x * M_1_LN2 + THREEp22;