46 two54 = 1.80143985094819840000e+16,
47 Lg1 = 6.666666666666735130e-01,
48 Lg2 = 3.999999999940941908e-01,
49 Lg3 = 2.857142874366239149e-01,
50 Lg4 = 2.222219843214978396e-01,
51 Lg5 = 1.818357216161805012e-01,
52 Lg6 = 1.531383769920937332e-01,
53 Lg7 = 1.479819860511658591e-01;
111 double hfsq,f,s,z,R,w,t1,t2,dk;
118 if (hx < 0x00100000) {
119 if (((hx&0x7fffffff)|lx)==0)
121 if (hx<0)
return (x-x)/
zero;
126 if (hx >= 0x7ff00000)
return x+x;
129 i = (hx+0x95f64)&0x100000;
133 if((0x000fffff&(2+hx))<3) {
142 R = f*f*(0.5-0.33333333333333333*f);
161 if(k==0)
return f-(hfsq-s*(hfsq+R));
165 if(k==0)
return f-s*(f-R);
double log(double x)
Natural logarithm function (base e)
#define GET_HIGH_WORD(i, d)
Get the more significant 32 bit int from a double.
static const double two54
#define EXTRACT_WORDS(ix0, ix1, d)
Get two 32 bit ints from a double.
static const double ln2_hi
#define SET_HIGH_WORD(d, v)
Set the more significant 32 bits of a double from an int.
static const double ln2_lo