From b08d346fbfbdd8d4a6324b404d48472e931f667a Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Thu, 29 Oct 2020 17:54:16 -0400 Subject: document ROUND_ macros Signed-off-by: Thanos Makatos --- lib/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/common.h b/lib/common.h index b7b5a76..f5de4d8 100644 --- a/lib/common.h +++ b/lib/common.h @@ -45,6 +45,7 @@ #define likely(e) __builtin_expect(!!(e), 1) #define unlikely(e) __builtin_expect(e, 0) +/* XXX NB 2nd argument must be power of two */ #define ROUND_DOWN(x, a) ((x) & ~((a)-1)) #define ROUND_UP(x,a) ROUND_DOWN((x)+(a)-1, a) -- cgit v1.1