Fix build warnings, but get it right.
git-svn-id: svn://10.0.0.236/trunk@48103 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4e5e6e063e
commit
51041aed57
@ -128,8 +128,10 @@ static double zero = 0.0;
|
||||
k += (i>>20);
|
||||
f = x-1.0;
|
||||
if((0x000fffff&(2+hx))<3) { /* |f| < 2**-20 */
|
||||
if(f==zero) { if(k==0) return zero; } else {dk=(double)k;
|
||||
return dk*ln2_hi+dk*ln2_lo;}
|
||||
if(f==zero) {
|
||||
if(k==0) return zero; else {dk=(double)k;
|
||||
return dk*ln2_hi+dk*ln2_lo;}
|
||||
}
|
||||
R = f*f*(0.5-0.33333333333333333*f);
|
||||
if(k==0) return f-R; else {dk=(double)k;
|
||||
return dk*ln2_hi-((R-dk*ln2_lo)-f);}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user