diff options
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index 021ca75..87402e6 100644 --- a/src/utils.h +++ b/src/utils.h | |||
| @@ -1,4 +1,6 @@ | |||
| 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)) | ||
| 3 | #define _max(x, y) ((x) > (y) ? (x) : (y)) | ||
| 2 | 4 | ||
| 3 | _static int64_t factorial(int64_t); | 5 | _static int64_t factorial(int64_t); |
| 4 | _static bool isperm(uint8_t *, int64_t); | 6 | _static bool isperm(uint8_t *, int64_t); |
