util/rb_tree: Reverse the order of comparison functions
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 19 Sep 2019 20:17:24 +0000 (15:17 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 20 Sep 2019 17:37:25 +0000 (17:37 +0000)
commitdae33052dbfec843d5e997dbd93049d702977fa6
treeecb34fd5b67cae561df8d2cb187abcaf379763f4
parentd35d7346d2446d8638b90425607c3f25fc339008
util/rb_tree: Reverse the order of comparison functions

The new order matches that of the comparison functions accepted by the C
standard library qsort() functions.  Being consistent with qsort will
hopefully help avoid developer confusion.

The only current user of the red-black tree is aub_mem.c which is pretty
easy to fix up.

Reviewed-by: Lionel Landwerlin <lionel.g.lndwerlin@intel.com>
src/intel/tools/aub_mem.c
src/util/rb_tree.h
src/util/rb_tree_test.c