replace log() calls with constants
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user