aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/distribution.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-09-17 21:58:25 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-09-17 22:25:03 +0200
commit446f56c8752071ba64c7ec22968b2417c9465c8e (patch)
treefa3d07dae927d563fb67723f9e8a625cd1258eae /src/solvers/distribution.h
parent2f9d00075b0d236ecd8431761bb045e6aa088001 (diff)
parent1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88 (diff)
downloadnissy-core-446f56c8752071ba64c7ec22968b2417c9465c8e.tar.gz
nissy-core-446f56c8752071ba64c7ec22968b2417c9465c8e.zip
Merge branch 'master' into twostep-solver
Diffstat (limited to 'src/solvers/distribution.h')
-rw-r--r--src/solvers/distribution.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/solvers/distribution.h b/src/solvers/distribution.h
index a996e3db..1ed7453 100644
--- a/src/solvers/distribution.h
+++ b/src/solvers/distribution.h
@@ -1,3 +1,6 @@
1#ifndef SOLVERS_DISTRIBUTION_H
2#define SOLVERS_DISTRIBUTION_H
3
1#define ENTRIES_PER_BYTE(k) (UINT64_C(8) / (uint64_t)(k)) 4#define ENTRIES_PER_BYTE(k) (UINT64_C(8) / (uint64_t)(k))
2#define TABLE_SHIFT(i, k) ((uint8_t)(k) * (uint8_t)((i) % ENTRIES_PER_BYTE(k))) 5#define TABLE_SHIFT(i, k) ((uint8_t)(k) * (uint8_t)((i) % ENTRIES_PER_BYTE(k)))
3#define TABLE_MASK(i, k) ((UINT8_BIT(k) - UINT8_C(1)) << TABLE_SHIFT(i, k)) 6#define TABLE_MASK(i, k) ((UINT8_BIT(k) - UINT8_C(1)) << TABLE_SHIFT(i, k))
@@ -99,3 +102,5 @@ distribution_equal(
99 102
100 return wrong == 0; 103 return wrong == 0;
101} 104}
105
106#endif /* SOLVERS_DISTRIBUTION_H */

Generated with cgit - Back to sebastiano.tronto.net