comparison src/video/e_pow.h @ 1345:7f32b9bede06

Fixes for Visual C++ 6.0
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 18:36:54 +0000
parents 450721ad5436
children 7a610f25c12f
comparison
equal deleted inserted replaced
1344:2eed9997bd24 1345:7f32b9bede06
128 if(iy>=0x43400000) yisint = 2; /* even integer y */ 128 if(iy>=0x43400000) yisint = 2; /* even integer y */
129 else if(iy>=0x3ff00000) { 129 else if(iy>=0x3ff00000) {
130 k = (iy>>20)-0x3ff; /* exponent */ 130 k = (iy>>20)-0x3ff; /* exponent */
131 if(k>20) { 131 if(k>20) {
132 j = ly>>(52-k); 132 j = ly>>(52-k);
133 if((j<<(52-k))==ly) yisint = 2-(j&1); 133 if((u_int32_t)(j<<(52-k))==ly) yisint = 2-(j&1);
134 } else if(ly==0) { 134 } else if(ly==0) {
135 j = iy>>(20-k); 135 j = iy>>(20-k);
136 if((j<<(20-k))==iy) yisint = 2-(j&1); 136 if((j<<(20-k))==iy) yisint = 2-(j&1);
137 } 137 }
138 } 138 }