From b17411249b17133f35833c202e6c2e4bf43b3298 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 5 Sep 2024 10:04:34 +0200 Subject: More renaming --- src/utils/math.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/utils') diff --git a/src/utils/math.h b/src/utils/math.h index e6c2589..1ab51e6 100644 --- a/src/utils/math.h +++ b/src/utils/math.h @@ -1,7 +1,7 @@ -#define _swap(x, y) do { x ^= y; y ^= x; x ^= y; } while (0) -#define _min(x, y) ((x) < (y) ? (x) : (y)) -#define _max(x, y) ((x) > (y) ? (x) : (y)) -#define _div_round_up(n, d) (((n) + (d) - 1) / (d)) +#define SWAP(x, y) do { x ^= y; y ^= x; x ^= y; } while (0) +#define MIN(x, y) ((x) < (y) ? (x) : (y)) +#define MAX(x, y) ((x) > (y) ? (x) : (y)) +#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) STATIC int64_t factorial(int64_t); STATIC bool isperm(uint8_t *, int64_t); -- cgit v1.3