aboutsummaryrefslogtreecommitdiff
path: root/src/utils/math.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-09-17 21:58:25 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-09-17 22:25:03 +0200
commit446f56c8752071ba64c7ec22968b2417c9465c8e (patch)
treefa3d07dae927d563fb67723f9e8a625cd1258eae /src/utils/math.h
parent2f9d00075b0d236ecd8431761bb045e6aa088001 (diff)
parent1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88 (diff)
downloadnissy-core-446f56c8752071ba64c7ec22968b2417c9465c8e.tar.gz
nissy-core-446f56c8752071ba64c7ec22968b2417c9465c8e.zip
Merge branch 'master' into twostep-solver
Diffstat (limited to 'src/utils/math.h')
-rw-r--r--src/utils/math.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/math.h b/src/utils/math.h
index 0c56861..66ddaed 100644
--- a/src/utils/math.h
+++ b/src/utils/math.h
@@ -1,3 +1,6 @@
1#ifndef UTILS_MATH_H
2#define UTILS_MATH_H
3
1#define SWAP(x, y) do { x ^= y; y ^= x; x ^= y; } while (0) 4#define SWAP(x, y) do { x ^= y; y ^= x; x ^= y; } while (0)
2#define MIN(x, y) ((x) < (y) ? (x) : (y)) 5#define MIN(x, y) ((x) < (y) ? (x) : (y))
3#define MAX(x, y) ((x) > (y) ? (x) : (y)) 6#define MAX(x, y) ((x) > (y) ? (x) : (y))
@@ -146,3 +149,5 @@ intpow(double b, uint64_t e)
146 149
147 return e % 2 == 0 ? r * r : b * r * r; 150 return e % 2 == 0 ? r * r : b * r * r;
148} 151}
152
153#endif /* UTILS_MATH_H */

Generated with cgit - Back to sebastiano.tronto.net