replace log() calls with constants

This commit is contained in:
2011-06-09 14:27:51 +00:00
parent d4ae38cc6c
commit 15d0d3f41e
7 changed files with 8 additions and 8 deletions

View File

@@ -114,7 +114,7 @@ MINLINE float shell_angle_to_dist(const float angle)
/* used for zoom values*/
MINLINE float power_of_2(float val)
{
return (float)pow(2.0, ceil(log((double)val) / log(2.0)));
return (float)pow(2.0, ceil(log((double)val) / M_LN2));
}
MINLINE float minf(float a, float b)