diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-27 17:31:42 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-27 17:31:42 +0100 |
| commit | 36fb1d0fa1b70ee62dc6073d56176e8c81ceddfd (patch) | |
| tree | 9229e367690099c83b2f5231ca1990d7fb7561df /src/trans.h | |
| parent | 7de88d1bcd420447023b8e74b0aa4f5e8ba1df6b (diff) | |
| download | nissy-36fb1d0fa1b70ee62dc6073d56176e8c81ceddfd.tar.gz nissy-36fb1d0fa1b70ee62dc6073d56176e8c81ceddfd.zip | |
Removed some unused code (khuge). Improved optimal solver performance by about 10% using raw transition tables (same for dr step).
Diffstat (limited to '')
| -rw-r--r-- | src/trans.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/trans.h b/src/trans.h index 2eda568..13d17d8 100644 --- a/src/trans.h +++ b/src/trans.h | |||
| @@ -3,6 +3,19 @@ | |||
| 3 | 3 | ||
| 4 | #include "moves.h" | 4 | #include "moves.h" |
| 5 | 5 | ||
| 6 | /* | ||
| 7 | * Tables are exposed to allow faster partial transofrmations in some | ||
| 8 | * specific cases (in symcoord) | ||
| 9 | */ | ||
| 10 | extern int epose_ttable[NTRANS][FACTORIAL12/FACTORIAL8]; | ||
| 11 | extern int eposs_ttable[NTRANS][FACTORIAL12/FACTORIAL8]; | ||
| 12 | extern int eposm_ttable[NTRANS][FACTORIAL12/FACTORIAL8]; | ||
| 13 | extern int eo_ttable[NTRANS][POW2TO11]; | ||
| 14 | extern int cp_ttable[NTRANS][FACTORIAL8]; | ||
| 15 | extern int co_ttable[NTRANS][POW3TO7]; | ||
| 16 | extern int cpos_ttable[NTRANS][FACTORIAL6]; | ||
| 17 | extern Move moves_ttable[NTRANS][NMOVES]; | ||
| 18 | |||
| 6 | Cube apply_trans(Trans t, Cube cube); | 19 | Cube apply_trans(Trans t, Cube cube); |
| 7 | Trans inverse_trans(Trans t); | 20 | Trans inverse_trans(Trans t); |
| 8 | Alg * rotation_alg(Trans i); | 21 | Alg * rotation_alg(Trans i); |
