diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-12-21 20:25:16 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-12-21 20:25:16 -0500 |
commit | bf967b469f21f915931853d53a3a7108054cf29e (patch) | |
tree | 3a55e8cc87de0cad60be78d9119b9d4f6728893a /wayland-util.h | |
parent | 0ab262421ae486d4087dc693c530de1b750fd510 (diff) | |
download | wayland-bf967b469f21f915931853d53a3a7108054cf29e.tar.gz wayland-bf967b469f21f915931853d53a3a7108054cf29e.tar.xz wayland-bf967b469f21f915931853d53a3a7108054cf29e.zip |
Advertise globals using a new display event.
Diffstat (limited to 'wayland-util.h')
-rw-r--r-- | wayland-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wayland-util.h b/wayland-util.h index 5fc6451..2515687 100644 --- a/wayland-util.h +++ b/wayland-util.h @@ -31,6 +31,8 @@ #endif #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) +#define ALIGN(n, a) ( ((n) + ((a) - 1)) & ~((a) - 1) ) +#define DIV_ROUNDUP(n, a) ( ((n) + ((a) - 1)) / (a) ) #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ |