diff options
author | David S. Miller <davem@davemloft.net> | 2013-01-15 20:32:13 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-15 20:32:13 -0800 |
commit | 438ebba294deaac875c8a2674b813afa05b0d4e6 (patch) | |
tree | 0f13968979cc9898034b472022e359d2a2a84cb1 /sysdeps/ieee754/dbl-64/s_nearbyint.c | |
parent | 357679d2fc567e8d6c030cf0f0fd54f6c31e23a3 (diff) | |
download | glibc-438ebba294deaac875c8a2674b813afa05b0d4e6.tar.gz glibc-438ebba294deaac875c8a2674b813afa05b0d4e6.tar.xz glibc-438ebba294deaac875c8a2674b813afa05b0d4e6.zip |
Use libc_fe*() in 32-bit nearbyint()
* sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use libc_feholdexcept and libc_fesetenv.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/s_nearbyint.c')
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_nearbyint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/ieee754/dbl-64/s_nearbyint.c b/sysdeps/ieee754/dbl-64/s_nearbyint.c index 60afafdedd..eb40c298bb 100644 --- a/sysdeps/ieee754/dbl-64/s_nearbyint.c +++ b/sysdeps/ieee754/dbl-64/s_nearbyint.c @@ -44,10 +44,10 @@ double __nearbyint(double x) j0 = ((i0>>20)&0x7ff)-0x3ff; if(j0<52) { if(j0<0) { - feholdexcept (&env); + libc_feholdexcept (&env); w = TWO52[sx]+x; t = w-TWO52[sx]; - fesetenv (&env); + libc_fesetenv (&env); GET_HIGH_WORD(i0,t); SET_HIGH_WORD(t,(i0&0x7fffffff)|(sx<<31)); return t; @@ -56,10 +56,10 @@ double __nearbyint(double x) if(j0==0x400) return x+x; /* inf or NaN */ else return x; /* x is integral */ } - feholdexcept (&env); + libc_feholdexcept (&env); w = TWO52[sx]+x; t = w-TWO52[sx]; - fesetenv (&env); + libc_fesetenv (&env); return t; } weak_alias (__nearbyint, nearbyint) |