diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-09-17 21:58:25 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-09-17 22:25:03 +0200 |
| commit | 446f56c8752071ba64c7ec22968b2417c9465c8e (patch) | |
| tree | fa3d07dae927d563fb67723f9e8a625cd1258eae /src/solvers/distribution.h | |
| parent | 2f9d00075b0d236ecd8431761bb045e6aa088001 (diff) | |
| parent | 1f7e8e937d0e71e7eb3b5deab38b34d0a0159d88 (diff) | |
| download | nissy-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.h | 5 |
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 */ | ||
