math: use 0x1p-120f and 0x1p120f for tiny and huge values
[musl] / src / math / acosl.c
index 9e9b01e..9e7b7fb 100644 (file)
@@ -38,14 +38,14 @@ long double acosl(long double x)
                        ((u.bits.manh & ~LDBL_NBIT) | u.bits.manl) == 0) {
                        if (expsign > 0)
                                return 0;  /* acos(1) = 0 */
-                       return 2*pio2_hi + 0x1p-1000;  /* acos(-1)= pi */
+                       return 2*pio2_hi + 0x1p-120f;  /* acos(-1)= pi */
                }
                return 0/(x-x);  /* acos(|x|>1) is NaN */
        }
        /* |x| < 0.5 */
        if (expt < 0x3fff - 1) {
                if (expt < 0x3fff - 65)
-                       return pio2_hi + 0x1p-1000;  /* x < 0x1p-65: acosl(x)=pi/2 */
+                       return pio2_hi + 0x1p-120f;  /* x < 0x1p-65: acosl(x)=pi/2 */
                return pio2_hi - (x - (pio2_lo - x * __invtrigl_R(x*x)));
        }
        /* x < -0.5 */