aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorame <[email protected]>2024-03-11 14:02:12 -0500
committerame <[email protected]>2024-03-11 14:02:12 -0500
commit74289579ac66890ef0d7df2a5ec5f15f8308b8cd (patch)
tree36570aa190e64b57c69c10e0cf0e3c1eb880bc92 /src/util.h
parent652146a3a4780ede6cc99ae56871f8f6bb506284 (diff)
hashing fixes
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 6612512..30fa1f6 100644
--- a/src/util.h
+++ b/src/util.h
@@ -23,7 +23,8 @@
#define color_reset "\e[0m"
#define i_swap(A,B) double temp = A; A = B; B = temp;
-#define lesser(A,B) (A>B?B:A)
+#define lesser(A,B) ((A)>(B)?(B):(A))
+#define inter(V,I) (I * ceil((double)V / I))
int gen_parse(char*,int, parray_t**);
#define p_fatal(M) _p_fatal(M, __LINE__, __FILE__, __func__ );