Adding MIN()/MAX() macros
This commit is contained in:
parent
aea2dcabdc
commit
cf3527e2f4
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@
|
|||
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
|
||||
#define ALIGN(s, a) (((s)+a-1)&~(a-1))
|
||||
|
||||
/* Utility-Macros */
|
||||
#define MIN(a,b) ((a<b)?a:b)
|
||||
#define MAX(a,b) ((a>b)?a:b)
|
||||
|
||||
/* Functions which don't return */
|
||||
|
||||
#define NORET __attribute__((noreturn))
|
||||
|
|
Loading…
Reference in a new issue