From 955fe812dcf3a453936685be78df5c1fcc9ad26b Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 15 Oct 2021 17:18:48 +0200 Subject: util: Define ROUND_UP() ...not actually used, just for completeness, as ROUND_DOWN() is defined. Signed-off-by: Stefano Brivio --- util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util.h b/util.h index 9edf041..a2ed791 100644 --- a/util.h +++ b/util.h @@ -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 { \ -- cgit v1.2.3