mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
Move DIV_ROUNDUP out of public header, remove unused ALIGN
This commit is contained in:
parent
485dd7b6e2
commit
ba32db9532
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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); \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue