Added macros for getting the maximum and minimum of two numbers

This commit is contained in:
2023-10-15 21:49:13 +01:00
parent 639808a092
commit 98760ee63b

View File

@@ -15,6 +15,8 @@
#include <stdint.h>
#define ARR_SIZE(xs) (sizeof(xs) / sizeof(xs[0]))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) > (b) ? (b) : (a))
typedef uint64_t u64;
typedef uint32_t u32;