diff options
author | nsz <nsz@port70.net> | 2012-03-29 14:09:57 +0200 |
---|---|---|
committer | nsz <nsz@port70.net> | 2012-03-29 14:09:57 +0200 |
commit | 7eabe8e69044e3683376165934a17210b6b148b9 (patch) | |
tree | 8c5c8be0860bb475a8075c54fe6cb86124b2753e /src/math/ceill.c | |
parent | d79ac8c38f3992b4547d155f5c8e612f51d9b32e (diff) | |
download | musl-7eabe8e69044e3683376165934a17210b6b148b9.tar.gz musl-7eabe8e69044e3683376165934a17210b6b148b9.tar.bz2 musl-7eabe8e69044e3683376165934a17210b6b148b9.tar.xz musl-7eabe8e69044e3683376165934a17210b6b148b9.zip |
math: minor cleanups in ceil and floor
Diffstat (limited to 'src/math/ceill.c')
-rw-r--r-- | src/math/ceill.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/math/ceill.c b/src/math/ceill.c index b938cc7f..a3523f9d 100644 --- a/src/math/ceill.c +++ b/src/math/ceill.c @@ -49,8 +49,7 @@ long double ceill(long double x) static const long double huge = 1.0e300; -long double -ceill(long double x) +long double ceill(long double x) { union IEEEl2bits u = { .e = x }; int e = u.bits.exp - LDBL_MAX_EXP + 1; |