X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Flog2l.c;h=cf08b0a458c989c4a810f4361dc057ef9ba790f0;hp=8198af74dc642618cc9004d875eeb5dfb81de71a;hb=59c2bd747bce9b1e35c893b2ace9bea57523a901;hpb=43091ad6c77c394b7fcff618eed187129b0457fe diff --git a/src/math/log2l.c b/src/math/log2l.c index 8198af7..cf08b0a 100644 --- a/src/math/log2l.c +++ b/src/math/log2l.c @@ -59,12 +59,12 @@ #include "libm.h" -#if LD64 +#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 long double log2l(long double x) { return log2(x); } -#elif LD80 +#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 /* Coefficients for ln(1+x) = x - x**2/2 + x**3 P(x)/Q(x) * 1/sqrt(2) <= x < sqrt(2) * Theoretical peak relative error = 6.2e-22