gwion-util
utilities for the Gwion project
|
base definitions More...
Go to the source code of this file.
Macros | |
#define | _(String) (String) |
#define | container_of(ptr, type, member) ((type *)((char *)(ptr)-offsetof(type, member))) |
#define | ANN __attribute__((nonnull)) |
#define | ANN2(...) __attribute__((nonnull(__VA_ARGS__))) |
#define | ANEW __attribute__((malloc)) |
#define | NUSED __attribute__((unused)) |
#define | LOOP_OPTIM |
#define | likely(x) __builtin_expect(!!(x), 1) |
#define | unlikely(x) __builtin_expect(!!(x), 0) |
#define | CHECK_B(f) |
#define | CHECK_O(f) |
#define | DECL_B(decl, f, exp) |
#define | DECL_O(decl, f, exp) |
Typedefs | |
typedef unsigned int | uint |
Functions | |
static m_uint | num_digit (const m_uint i) |
static m_uint | round2szint (const m_uint i) |
base definitions
Definition in file defs.h.
#define ANEW __attribute__((malloc)) |
#define ANN __attribute__((nonnull)) |
#define ANN2 | ( | ... | ) | __attribute__((nonnull(__VA_ARGS__))) |
#define CHECK_B | ( | f | ) |
#define CHECK_O | ( | f | ) |
#define container_of | ( | ptr, | |
type, | |||
member ) ((type *)((char *)(ptr)-offsetof(type, member))) |
#define DECL_B | ( | decl, | |
f, | |||
exp ) |
#define DECL_O | ( | decl, | |
f, | |||
exp ) |
#define NUSED __attribute__((unused)) |