From 7ef85aa41ff57cbe5395f83d4ea23b651287b78d Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Sat, 23 Jan 2010 11:25:20 +0000 Subject: 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? --- source/blender/blenlib/intern/math_base_inline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern/math_base_inline.c') 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) -- cgit v1.2.3