1
0
mirror of https://passt.top/passt synced 2024-09-30 19:15:47 +00:00

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 { \