diff options
Diffstat (limited to 'sysdeps/libm-ieee754/e_exp.c')
-rw-r--r-- | sysdeps/libm-ieee754/e_exp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/libm-ieee754/e_exp.c b/sysdeps/libm-ieee754/e_exp.c index 5eae12a19c..ee0b22f6ae 100644 --- a/sysdeps/libm-ieee754/e_exp.c +++ b/sysdeps/libm-ieee754/e_exp.c @@ -91,7 +91,9 @@ __ieee754_exp (double x) fenv_t oldenv; feholdexcept (&oldenv); +#ifdef FE_TONEAREST fesetround (FE_TONEAREST); +#endif /* Calculate n. */ n = x * M_1_LN2 + THREEp51; |