From c548499e68e473452592c9b0bf860f76bd8b94b8 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 30 Aug 2024 07:52:53 +0200 Subject: Added tool for checking new tables (and they are wrong) --- src/utils/math.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/utils/math.h') diff --git a/src/utils/math.h b/src/utils/math.h index 87402e6..a361808 100644 --- a/src/utils/math.h +++ b/src/utils/math.h @@ -1,6 +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)) _static int64_t factorial(int64_t); _static bool isperm(uint8_t *, int64_t); -- cgit v1.3