small optimization for BLI_heap(), give some speedup in decimeter.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 22 Oct 2012 03:25:53 +0000 (03:25 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 22 Oct 2012 03:25:53 +0000 (03:25 +0000)
commita4b27831693eed988bcdf957bbe9ad7609e7bdf7
tree3494d520b807cf40ebfc32650b67e32e5287f723
parent226a5ee83446f91cfeccc73912de85e89fe2169f
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
intern/container/CTR_HashedPtr.h
intern/container/CTR_Map.h
source/blender/blenlib/BLI_heap.h
source/blender/blenlib/BLI_utildefines.h
source/blender/blenlib/intern/BLI_heap.c
source/blender/modifiers/intern/MOD_decimate.c