Move DIV_ROUNDUP out of public header, remove unused ALIGN

This commit is contained in:
Kristian Høgsberg 2012-03-30 10:28:39 -04:00
parent 485dd7b6e2
commit ba32db9532
2 changed files with 2 additions and 2 deletions

View file

@ -39,6 +39,8 @@
#include "wayland-util.h" #include "wayland-util.h"
#include "wayland-private.h" #include "wayland-private.h"
#define DIV_ROUNDUP(n, a) ( ((n) + ((a) - 1)) / (a) )
struct wl_buffer { struct wl_buffer {
char data[4096]; char data[4096];
int head, tail; int head, tail;

View file

@ -37,8 +37,6 @@ extern "C" {
#endif #endif
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) #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) ({ \ #define container_of(ptr, type, member) ({ \
const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \ const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \