aboutsummaryrefslogtreecommitdiff
path: root/src/utils/constants.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-09-17 21:50:34 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-09-17 21:50:34 +0200
commit1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88 (patch)
tree3eddf00f6f44356596b688325d4ef197c0e673e0 /src/utils/constants.h
parentaa306fa0a2047f30d585da7923f963e8d321aa0b (diff)
downloadnissy-core-1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88.tar.gz
nissy-core-1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88.zip
Added include guardsHEADmasterinclude-guards
Diffstat (limited to '')
-rw-r--r--src/utils/constants.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/constants.h b/src/utils/constants.h
index 3eed27d..3d0f6e3 100644
--- a/src/utils/constants.h
+++ b/src/utils/constants.h
@@ -1,3 +1,6 @@
1#ifndef UTILS_CONSTANTS_H
2#define UTILS_CONSTANTS_H
3
1#define UINT8_BIT(i) (UINT8_C(1) << (uint8_t)(i)) 4#define UINT8_BIT(i) (UINT8_C(1) << (uint8_t)(i))
2 5
3#define FACTORIAL_MAX UINT64_C(12) 6#define FACTORIAL_MAX UINT64_C(12)
@@ -42,3 +45,5 @@ STATIC uint64_t binomial[12][12] = {
42 {1, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1, 0}, 45 {1, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1, 0},
43 {1, 11, 55, 165, 330, 462, 462, 330, 165, 55, 11, 1}, 46 {1, 11, 55, 165, 330, 462, 462, 330, 165, 55, 11, 1},
44}; 47};
48
49#endif /* UTILS_CONSTANTS_H */

Generated with cgit - Back to sebastiano.tronto.net