[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v3 2/5] xen: Add macro ROUNDUP
Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx> CC: Keir Fraser <keir@xxxxxxx> CC: Jan Beulich <jbeulich@xxxxxxxx> --- Changes in v3: - Move the macro in include/xen/lib.h - Rename in ROUNDUP to avoid collision with assembly ALIGN macro --- xen/include/xen/lib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h index 4768b0e..5b258fd 100644 --- a/xen/include/xen/lib.h +++ b/xen/include/xen/lib.h @@ -63,6 +63,8 @@ do { \ #define MASK_EXTR(v, m) (((v) & (m)) / ((m) & -(m))) #define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m)) +#define ROUNDUP(x, a) (((x) + (a) - 1) & ~((a) - 1)) + #define reserve_bootmem(_p,_l) ((void)0) struct domain; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |