diff --git a/utils/src/util.h b/utils/src/util.h index f4dec4f0..daa28a98 100644 --- a/utils/src/util.h +++ b/utils/src/util.h @@ -50,6 +50,8 @@ do { \ ((a) + _b - 1) & ~(_b - 1); \ }) +#define DIV_ROUND_UP(x, y) (((x) + (y) - 1) / (y)) + #ifndef offsetof #define offsetof(type, memb) ((unsigned long)&((type *)0)->memb) #endif