From 1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 17 Sep 2026 21:50:34 +0200 Subject: Added include guards --- src/utils/math.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/utils/math.h') 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 @@ +#ifndef UTILS_MATH_H +#define UTILS_MATH_H + #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)) @@ -146,3 +149,5 @@ intpow(double b, uint64_t e) return e % 2 == 0 ? r * r : b * r * r; } + +#endif /* UTILS_MATH_H */ -- cgit v1.3