diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 10:04:34 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 10:04:34 +0200 |
| commit | b17411249b17133f35833c202e6c2e4bf43b3298 (patch) | |
| tree | 3417a006ee5207b4ff9a2bfcc4bc971853d24577 /src/utils | |
| parent | fd5ddb3db9f50411ca579d84f225f265ca35b56a (diff) | |
| download | nissy-core-b17411249b17133f35833c202e6c2e4bf43b3298.tar.gz nissy-core-b17411249b17133f35833c202e6c2e4bf43b3298.zip | |
More renaming
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/math.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ | |||
| 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 | #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) |
| 5 | 5 | ||
| 6 | STATIC int64_t factorial(int64_t); | 6 | STATIC int64_t factorial(int64_t); |
| 7 | STATIC bool isperm(uint8_t *, int64_t); | 7 | STATIC bool isperm(uint8_t *, int64_t); |
