]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_log2l.c
Avoid overflows from long double functions using __kernel_standard.
[thirdparty/glibc.git] / math / w_log2l.c
index eed04ff6cc594270fe5aa18dde53df560a1894f5..1400c938ee40d4d85f63d7416d57fae940f60f0b 100644 (file)
@@ -30,12 +30,12 @@ __log2l (long double x)
       if (x == 0.0L)
        {
          feraiseexcept (FE_DIVBYZERO);
-         return __kernel_standard (x, x, 248); /* log2(0) */
+         return __kernel_standard_l (x, x, 248); /* log2(0) */
        }
       else
        {
          feraiseexcept (FE_INVALID);
-         return __kernel_standard (x, x, 249); /* log2(x<0) */
+         return __kernel_standard_l (x, x, 249); /* log2(x<0) */
        }
     }