Adding MAX macro.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-01-12 20:02:39 +01:00
parent abb86dbf4b
commit 4c5ce3d257

View File

@@ -28,6 +28,10 @@ extern uint32_t board_millis();
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; })
#define MAX(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
#endif
#include <string.h>