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
|
@ -280,9 +280,6 @@ typedef char r_uart_ptchar;
|
|||
#define OUT_X(addrx,value) (*addrx = value)
|
||||
#define IN_X(addrx) (*addrx)
|
||||
|
||||
# define Max(a, b) ( (a)>(b) ? (a) : (b) ) // Take the max between a and b
|
||||
# define Min(a, b) ( (a)<(b) ? (a) : (b) ) // Take the min between a and b
|
||||
|
||||
// Align on the upper value <val> on a <n> boundary
|
||||
// i.e. Upper(0, 4)= 4
|
||||
// Upper(1, 4)= 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue