]> git.proxmox.com Git - qemu.git/blobdiff - osdep.h
bitmap: add a generic bitmap and bitops library
[qemu.git] / osdep.h
diff --git a/osdep.h b/osdep.h
index 8bd30d764d2a4ed922b4de3383d0502980636185..27eedcf1003a0a1cb198bdd0989ccc94857a44d4 100644 (file)
--- a/osdep.h
+++ b/osdep.h
 #define MAX(a, b) (((a) > (b)) ? (a) : (b))
 #endif
 
+#ifndef DIV_ROUND_UP
+#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
+#endif
+
 #ifndef ARRAY_SIZE
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 #endif