From a4b27831693eed988bcdf957bbe9ad7609e7bdf7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Oct 2012 03:25:53 +0000 Subject: small optimization for BLI_heap(), give some speedup in decimeter. - use unsigned ints only (where mixing signed/unsigned) - turn heap_swap into an inline function, add SWAP_TVAL macro to swap values using a temp value as storage. - added type checking SHIFT3/4 macros also style cleanup for CTR_Map --- source/blender/modifiers/intern/MOD_decimate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/intern/MOD_decimate.c b/source/blender/modifiers/intern/MOD_decimate.c index 7bcf56a1bfc..d55bc7ab9b1 100644 --- a/source/blender/modifiers/intern/MOD_decimate.c +++ b/source/blender/modifiers/intern/MOD_decimate.c @@ -49,6 +49,8 @@ #include "BKE_tessmesh.h" #include "bmesh.h" +// #define USE_TIMEIT + #ifdef USE_TIMEIT # include "PIL_time.h" #endif -- cgit v1.2.3