lib: move bsearch code
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Dec 2020 12:23:42 +0000 (13:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Dec 2020 12:23:42 +0000 (13:23 +0100)
commit7c3af561acb70ddd16069b9c9cab3ce503a10987
treeaae835d9b4828d3deef6747210addf095c1706fd
parentc54212261dc3305429344fe1d1cb298b30830155
lib: move bsearch code

Convert this code to an inline function (backed by an instance in an
archive in case the compiler decides against inlining), which results
in not having it in x86 final binaries. This saves a little bit of dead
code.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/common/Makefile
xen/common/bsearch.c [deleted file]
xen/include/xen/compiler.h
xen/include/xen/lib.h
xen/lib/Makefile
xen/lib/bsearch.c [new file with mode: 0644]