diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-30 07:52:53 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-30 07:52:53 +0200 |
| commit | c548499e68e473452592c9b0bf860f76bd8b94b8 (patch) | |
| tree | 02219807113dde108e278f38f3dd5874f7e3dc18 /src/utils/math.h | |
| parent | 7e6c14a2f6e9e9cbac3431f3085c42bbe474d13d (diff) | |
| download | nissy-core-c548499e68e473452592c9b0bf860f76bd8b94b8.tar.gz nissy-core-c548499e68e473452592c9b0bf860f76bd8b94b8.zip | |
Added tool for checking new tables (and they are wrong)
Diffstat (limited to '')
| -rw-r--r-- | src/utils/math.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ | |||
| 1 | #define _swap(x, y) do { x ^= y; y ^= x; x ^= y; } while (0) | 1 | #define _swap(x, y) do { x ^= y; y ^= x; x ^= y; } while (0) |
| 2 | #define _min(x, y) ((x) < (y) ? (x) : (y)) | 2 | #define _min(x, y) ((x) < (y) ? (x) : (y)) |
| 3 | #define _max(x, y) ((x) > (y) ? (x) : (y)) | 3 | #define _max(x, y) ((x) > (y) ? (x) : (y)) |
| 4 | #define _div_round_up(n, d) (((n) + (d) - 1) / (d)) | ||
| 4 | 5 | ||
| 5 | _static int64_t factorial(int64_t); | 6 | _static int64_t factorial(int64_t); |
| 6 | _static bool isperm(uint8_t *, int64_t); | 7 | _static bool isperm(uint8_t *, int64_t); |
