Move MAX, MIN and ABS to sys/cc.h
This commit is contained in:
parent
c9324d133f
commit
0dab6926b3
33 changed files with 41 additions and 93 deletions
|
@ -127,6 +127,19 @@
|
|||
#define NULL 0
|
||||
#endif /* NULL */
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(n, m) (((n) < (m)) ? (m) : (n))
|
||||
#endif
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(n, m) (((n) < (m)) ? (n) : (m))
|
||||
#endif
|
||||
|
||||
#ifndef ABS
|
||||
#define ABS(n) (((n) < 0) ? -(n) : (n))
|
||||
#endif
|
||||
|
||||
|
||||
#define CC_CONCAT2(s1, s2) s1##s2
|
||||
/**
|
||||
* A C preprocessing macro for concatenating to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue