aboutsummaryrefslogtreecommitdiff
path: root/src/utils/constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/constants.h')
-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