diff options
author | Joseph Eagar <joeedh@gmail.com> | 2010-01-23 14:25:20 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2010-01-23 14:25:20 +0300 |
commit | 7ef85aa41ff57cbe5395f83d4ea23b651287b78d (patch) | |
tree | 60e950948108158c752675fe4f68dbc1663996d4 /source/blender/blenlib/intern/math_base_inline.c | |
parent | f66d5a7b77d0f7a1eb2d530cb58509e52554b8e9 (diff) |
Initial results of my profiling of the animation system.
Basically two simple changes, changes, I pulled in the faster
ghash in bmesh (which uses mempools for allocation, providing
a substanstial speedup in some cases, and also I inlined some
of the functions), and I changed __inline to __forceinline for inlining
of math functions.
I also removed the timer in the view3d zoom op (ctrl-middlemouse)
that was making it nonfunctional. Why was that there?
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 71a0d2cc654..e228e25c4d6 100644 --- a/source/blender/blenlib/intern/math_base_inline.c +++ b/source/blender/blenlib/intern/math_base_inline.c @@ -110,7 +110,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, ceil(log(val) / log(2))); + return (float)pow(2.0, ceil(log((double)val) / log(2.0))); } MINLINE float minf(float a, float b) |