mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
removed misleading SWAP() macro
This commit is contained in:
parent
0dd1c68b09
commit
2da610f708
1 changed files with 0 additions and 7 deletions
|
@ -54,13 +54,6 @@
|
|||
/** Calculate the number of elements in an array. */
|
||||
#define ARRAY_LEN(a) ( sizeof (a) / sizeof (a)[0] )
|
||||
|
||||
/** Swap two values by using a local third one. */
|
||||
#define SWAP(a, b) do { \
|
||||
__typeof__(a) tmp = a; \
|
||||
a = b; \
|
||||
b = tmp; \
|
||||
} while(0)
|
||||
|
||||
/* Return the bigger value */
|
||||
#define MAX(a, b) ({ __typeof__ (a) _a = (a); \
|
||||
__typeof__ (b) _b = (b); \
|
||||
|
|
Loading…
Add table
Reference in a new issue