aboutsummaryrefslogtreecommitdiff
path: root/lib/common.h
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-10-29 17:54:16 -0400
committerThanos Makatos <thanos.makatos@nutanix.com>2020-10-29 17:54:16 -0400
commitb08d346fbfbdd8d4a6324b404d48472e931f667a (patch)
tree45da052ffc1e22ea80727c447773471dca02f1d8 /lib/common.h
parent5606b833330db090f8ec75cd886686d682fa47da (diff)
downloadlibvfio-user-b08d346fbfbdd8d4a6324b404d48472e931f667a.zip
libvfio-user-b08d346fbfbdd8d4a6324b404d48472e931f667a.tar.gz
libvfio-user-b08d346fbfbdd8d4a6324b404d48472e931f667a.tar.bz2
document ROUND_ macros
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/common.h')
-rw-r--r--lib/common.h1
1 files changed, 1 insertions, 0 deletions
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)