mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 21:03:54 -06:00
range: Make range_compare() public
Let's expose range_compare() in the header so that it can be reused outside of util/range.c Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
41cc70cdf5
commit
43f04cbeff
2 changed files with 7 additions and 5 deletions
|
@ -20,11 +20,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "qemu/range.h"
|
||||
|
||||
/*
|
||||
* Return -1 if @a < @b, 1 @a > @b, and 0 if they touch or overlap.
|
||||
* Both @a and @b must not be empty.
|
||||
*/
|
||||
static inline int range_compare(Range *a, Range *b)
|
||||
int range_compare(Range *a, Range *b)
|
||||
{
|
||||
assert(!range_is_empty(a) && !range_is_empty(b));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue