Lines Matching full:2
21 * Base 2 logarithm, long double precision
35 * Returns the base 2 logarithm of x.
41 * log(1+x) = x - 0.5 x**2 + x**3 P(x)/Q(x).
43 * Otherwise, setting z = 2(x-1)/x+1),
68 /* Coefficients for ln(1+x) = x - x**2/2 + x**3 P(x)/Q(x)
69 * 1/sqrt(2) <= x < sqrt(2)
92 /* Coefficients for log(x) = z + z^3 P(z^2)/Q(z^2),
93 * where z = 2(x-1)/(x+1)
94 * 1/sqrt(2) <= x < sqrt(2)
144 * where z = 2(x-1)/x+1) in log2l()
146 if( (e > 2) || (e < -2) ) in log2l()
149 { /* 2( 2x-1 )/( 2x+1 ) */ in log2l()
155 { /* 2 (x-1)/(x+1) */ in log2l()
167 /* logarithm using log(1+x) = x - .5x**2 + x**3 P(x)/Q(x) */ in log2l()
172 x = ldexpl( x, 1 ) - 1.0L; /* 2x - 1 */ in log2l()
180 y = y - ldexpl( z, -1 ); /* -0.5x^2 + ... */ in log2l()
185 * and base 2 exponent by 1 in log2l()