aboutsummaryrefslogtreecommitdiff
path: root/src/utils/constants.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-29 12:12:43 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-29 12:12:43 +0200
commitea0387796a349c91032fbcb10f50c6ad8607b0f6 (patch)
treeaed484690d24c0c28c7695d4b5389f2e3c341b96 /src/utils/constants.h
parent52c21640508c3fc668107778ae027ff4428ebd89 (diff)
downloadnissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.tar.gz
nissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.zip
All coordinates unsigned
Diffstat (limited to 'src/utils/constants.h')
-rw-r--r--src/utils/constants.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/utils/constants.h b/src/utils/constants.h
index e328a4c..f90dda3 100644
--- a/src/utils/constants.h
+++ b/src/utils/constants.h
@@ -1,17 +1,17 @@
1#define UINT8_BIT(i) (UINT8_C(1) << (uint8_t)(i)) 1#define UINT8_BIT(i) (UINT8_C(1) << (uint8_t)(i))
2 2
3#define FACTORIAL_MAX INT64_C(12) 3#define FACTORIAL_MAX UINT64_C(12)
4 4
5#define POW_2_11 INT64_C(2048) 5#define POW_2_11 UINT64_C(2048)
6#define POW_3_7 INT64_C(2187) 6#define POW_3_7 UINT64_C(2187)
7#define FACT_12 INT64_C(479001600) 7#define FACT_12 UINT64_C(479001600)
8#define FACT_8 INT64_C(40320) 8#define FACT_8 UINT64_C(40320)
9#define COMB_12_4 INT64_C(495) 9#define COMB_12_4 UINT64_C(495)
10#define COMB_8_4 INT64_C(70) 10#define COMB_8_4 UINT64_C(70)
11 11
12#define UINT8_ERROR UINT8_MAX 12#define UINT8_ERROR UINT8_MAX
13 13
14STATIC int64_t factorial[FACTORIAL_MAX+1] = { 14STATIC uint64_t factorial[FACTORIAL_MAX+1] = {
15 [0] = 1, 15 [0] = 1,
16 [1] = 1, 16 [1] = 1,
17 [2] = 2, 17 [2] = 2,
@@ -27,7 +27,7 @@ STATIC int64_t factorial[FACTORIAL_MAX+1] = {
27 [12] = 479001600, 27 [12] = 479001600,
28}; 28};
29 29
30STATIC int64_t binomial[12][12] = { 30STATIC uint64_t binomial[12][12] = {
31 {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 31 {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
32 {1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 32 {1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
33 {1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 33 {1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},

Generated with cgit - Back to sebastiano.tronto.net