This commit is contained in:
Glenn Maynard
2007-08-15 20:38:10 +00:00
parent 83d64246d9
commit 3509dfee03
+2 -2
View File
@@ -102,7 +102,7 @@ void fapproach( float& val, float other_val, float to_move )
float fmodfp(float x, float y)
{
x = fmodf(x, y); /* x is [-y,y] */
x += y; /* x is [0,y*2] */
x += y; /* x is [0,y*2] */
x = fmodf(x, y); /* x is [0,y] */
return x;
}
@@ -111,7 +111,7 @@ int power_of_two( int iInput )
{
int iValue = 1;
while ( iValue < iInput )
while( iValue < iInput )
iValue <<= 1;
return iValue;