mirror of https://github.com/encounter/SDL.git
e_exp: Fixed compiler warning on Visual Studio.
This commit is contained in:
parent
941c5b4760
commit
c0aa626ba3
|
@ -126,7 +126,7 @@ double __ieee754_exp(double x) /* default IEEE double exp */
|
||||||
if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */
|
if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */
|
||||||
hi = x-ln2HI[xsb]; lo=ln2LO[xsb]; k = 1-xsb-xsb;
|
hi = x-ln2HI[xsb]; lo=ln2LO[xsb]; k = 1-xsb-xsb;
|
||||||
} else {
|
} else {
|
||||||
k = invln2*x+halF[xsb];
|
k = (int32_t) (invln2*x+halF[xsb]);
|
||||||
t = k;
|
t = k;
|
||||||
hi = x - t*ln2HI[0]; /* t*ln2HI is exact here */
|
hi = x - t*ln2HI[0]; /* t*ln2HI is exact here */
|
||||||
lo = t*ln2LO[0];
|
lo = t*ln2LO[0];
|
||||||
|
|
Loading…
Reference in New Issue