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/blenkernel/BKE_utildefines.h | |
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/blenkernel/BKE_utildefines.h')
-rw-r--r-- | source/blender/blenkernel/BKE_utildefines.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_utildefines.h b/source/blender/blenkernel/BKE_utildefines.h index 77015876290..b33aa3d163c 100644 --- a/source/blender/blenkernel/BKE_utildefines.h +++ b/source/blender/blenkernel/BKE_utildefines.h @@ -262,3 +262,11 @@ behaviour, though it may not be the best in practice. #endif +/*little macro so inline keyword works*/ +#if defined(_MSC_VER) +#define BM_INLINE static __forceinline +#else +#define BM_INLINE static inline __attribute((always_inline)) +#endif + +#define BMEMSET(mem, val, size) {unsigned int _i; char *_c = (char*) mem; for (_i=0; _i<size; _i++) *_c++ = val;} |