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/ceil.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/ceil.c')
-rw-r--r-- | src/math/ceil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/math/ceil.c b/src/math/ceil.c index c2ab4a54..19555180 100644 --- a/src/math/ceil.c +++ b/src/math/ceil.c @@ -34,7 +34,6 @@ double ceil(double x) if (j0 < 0) { /* raise inexact if x != 0 */ if (huge+x > 0.0) { - /* return 0*sign(x) if |x|<1 */ if (i0 < 0) { i0 = 0x80000000; i1=0; @@ -44,7 +43,7 @@ double ceil(double x) } } } else { - i = (0x000fffff)>>j0; + i = 0x000fffff>>j0; if (((i0&i)|i1) == 0) /* x is integral */ return x; /* raise inexact flag */ |