rbtree: add rb_search_exact()master
commit68e3802b238b964900acac9422a70e295482243f
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Wed, 8 Jul 2020 16:48:43 +0000 (8 09:48 -0700)
committerH. Peter Anvin (Intel) <hpa@zytor.com>
Wed, 8 Jul 2020 16:49:38 +0000 (8 09:49 -0700)
tree31fe313828151dcc7f910082413c4e4a52fa6a49
parentc341ad7300afa3f71db5cd9813bbeebf32f9195b
rbtree: add rb_search_exact()

Sometimes we want to search for an exact key only, and reject the case
when tree->key < key. Add rb_search_exact() for this purpose, rather
than forcing the caller to perform the comparison in open code.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
include/rbtree.h
nasmlib/rbtree.c