Loading...
Searching...
No Matches
24#define POINTER_TO_UINT(p) ((unsigned int) ((uintptr_t) (p)))
25#define UINT_TO_POINTER(u) ((void *) ((uintptr_t) (u)))
26#define POINTER_TO_INT(p) ((int) ((intptr_t) (p)))
27#define INT_TO_POINTER(u) ((void *) ((intptr_t) (u)))
30#define CONTAINER_OF(ptr, type, field) \
31 ((type *)(((char *)(ptr)) - offsetof(type, field)))
35#define ARRAY_SIZE(array) \
36 (sizeof(array) / sizeof((array)[0]))