use alternate formula for acos asm to avoid loss of precision
[oweals/musl.git] / src / math / hypotf.c
index 40acd917d17fb96c9e18ef117885473fd1d48056..9fd77e6aa09cfd4db86f1c3c6aa177d52a43f7f2 100644 (file)
@@ -40,7 +40,7 @@ float hypotf(float x, float y)
        if (ha > 0x58800000) {    /* a > 2**50 */
                if(ha >= 0x7f800000) {  /* Inf or NaN */
                        /* Use original arg order iff result is NaN; quieten sNaNs. */
-                       w = fabsf(x+0.0F) - fabsf(y+0.0F);
+                       w = fabsf(x+0.0f) - fabsf(y+0.0f);
                        if (ha == 0x7f800000) w = a;
                        if (hb == 0x7f800000) w = b;
                        return w;