Macros | |
#define | __attrib_const /* no const attribute */ |
#define | __cold /* no cold marker */ |
#define | __deprecated /* no deprecated */ |
#define | __hot /* no hot marker */ |
#define | __like_printf(n) /* no like-printf */ |
#define | __must_check /* no warn_unused_result */ |
#define | _bound(a, b, c) MIN(c,MAX(b,a)) |
#define | _boundv(a, b, c) b = _bound(a,b,c) |
#define | _count(a) (sizeof(a)/sizeof(a[0])) |
#define | ABS(a) (((a) < (0)) ?-(a) : (a)) |
#define | CHKFLAG(v, f) ((v) & FLAG(f) ? true : false) |
#define | CLRFLAG(v, f) ((v) &=~FLAG(f)) |
#define | FLAG(f) (1L << (f)) |
#define | likely(x) (x) |
#define | MAX(A, B) ((A) > (B)?(A):(B)) |
#define | MAX_VAL(t) (((t)(-1) > 0) ? (t)(-1) : (t)(((1L<<(sizeof(t)*8-1))-1))) |
#define | MIN(A, B) ((A) < (B)?(A):(B)) |
#define | MIN_VAL(t) (((t)(-1) > 0) ? (t)( 0) : (t)(((1L<<(sizeof(t)*8-1)) ))) |
#define | SETFLAG(v, f) ((v) |= FLAG(f)) |
#define | unlikely(x) (x) |
#define __attrib_const /* no const attribute */ |
#define __cold /* no cold marker */ |
#define __deprecated /* no deprecated */ |
#define __hot /* no hot marker */ |
#define __like_printf | ( | n | ) | /* no like-printf */ |
#define __must_check /* no warn_unused_result */ |
#define _boundv | ( | a, | |
b, | |||
c | |||
) | b = _bound(a,b,c) |
#define _count | ( | a | ) | (sizeof(a)/sizeof(a[0])) |
#define ABS | ( | a | ) | (((a) < (0)) ?-(a) : (a)) |
#define CHKFLAG | ( | v, | |
f | |||
) | ((v) & FLAG(f) ? true : false) |
#define CLRFLAG | ( | v, | |
f | |||
) | ((v) &=~FLAG(f)) |
#define FLAG | ( | f | ) | (1L << (f)) |
#define likely | ( | x | ) | (x) |
#define MAX | ( | A, | |
B | |||
) | ((A) > (B)?(A):(B)) |
#define MAX_VAL | ( | t | ) | (((t)(-1) > 0) ? (t)(-1) : (t)(((1L<<(sizeof(t)*8-1))-1))) |
#define MIN | ( | A, | |
B | |||
) | ((A) < (B)?(A):(B)) |
#define MIN_VAL | ( | t | ) | (((t)(-1) > 0) ? (t)( 0) : (t)(((1L<<(sizeof(t)*8-1)) ))) |
#define SETFLAG | ( | v, | |
f | |||
) | ((v) |= FLAG(f)) |
#define unlikely | ( | x | ) | (x) |