BLI_heap: add validation check, improve tests
authorCampbell Barton <ideasman42@gmail.com>
Sun, 29 Oct 2017 07:23:33 +0000 (18:23 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 29 Oct 2017 07:23:33 +0000 (18:23 +1100)
commit512b879241d79bf91f70eecdc97944505d64bf6e
treec3f8619435940642fcced1e9bf5463cc23dfb494
parent560fa6db170261be0010b2be769bc8591e0a7f7e
BLI_heap: add validation check, improve tests

Also minor readability changes, avoid running both heap_up/down
gives minor speedup too.
source/blender/blenlib/BLI_heap.h
source/blender/blenlib/intern/BLI_heap.c
tests/gtests/blenlib/BLI_heap_test.cc