use alternate formula for acos asm to avoid loss of precision
[oweals/musl.git] / src / math / ceilf.c
index d83066a574affac18ce9fc9c90c9dee5f71c6e7a..d22688a7b917865dd5f9d4b443bd1f89c430f36c 100644 (file)
@@ -27,7 +27,7 @@ float ceilf(float x)
        if (j0 < 23) {
                if (j0 < 0) {
                        /* raise inexact if x != 0 */
-                       if (huge+x > (float)0.0) {
+                       if (huge+x > 0.0f) {
                                /* return 0*sign(x) if |x|<1 */
                                if (i0 < 0)
                                        i0 = 0x80000000;
@@ -39,7 +39,7 @@ float ceilf(float x)
                        if ((i0&i) == 0)
                                return x; /* x is integral */
                        /* raise inexact flag */
-                       if (huge+x > (float)0.0) {
+                       if (huge+x > 0.0f) {
                                if (i0 > 0)
                                        i0 += 0x00800000>>j0;
                                i0 &= ~i;