util: Define ROUND_UP()

...not actually used, just for completeness, as ROUND_DOWN() is
defined.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-10-15 17:18:48 +02:00
parent 2f4f29c5a7
commit 955fe812dc

2
util.h
View file

@ -26,6 +26,8 @@ void debug(const char *format, ...);
#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
#define ROUND_DOWN(x, y) ((x) & ~((y) - 1))
#define ROUND_UP(x, y) (((x) + (y) - 1) & ~((y) - 1))
#define SWAP(a, b) \
do { \