diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-09 18:27:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-09 18:27:51 +0400 |
commit | 15d0d3f41e51a29f79f40600fdd3d856e9c525c4 (patch) | |
tree | 57fb8a72f22650d0dcdc1fb65bd1d99ce42107c1 /source/blender/blenlib/intern/math_base_inline.c | |
parent | d4ae38cc6c4ec8e3d13f26d12f85bca561f64f0f (diff) |
replace log() calls with constants
Diffstat (limited to 'source/blender/blenlib/intern/math_base_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_base_inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c index d37f1d6c5f0..2a2b1100fd9 100644 --- a/source/blender/blenlib/intern/math_base_inline.c +++ b/source/blender/blenlib/intern/math_base_inline.c @@ -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) |