aboutsummaryrefslogtreecommitdiff
path: root/src/trans.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-02-27 17:31:42 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2022-02-27 17:31:42 +0100
commit36fb1d0fa1b70ee62dc6073d56176e8c81ceddfd (patch)
tree9229e367690099c83b2f5231ca1990d7fb7561df /src/trans.h
parent7de88d1bcd420447023b8e74b0aa4f5e8ba1df6b (diff)
downloadnissy-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 'src/trans.h')
-rw-r--r--src/trans.h13
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 */
10extern int epose_ttable[NTRANS][FACTORIAL12/FACTORIAL8];
11extern int eposs_ttable[NTRANS][FACTORIAL12/FACTORIAL8];
12extern int eposm_ttable[NTRANS][FACTORIAL12/FACTORIAL8];
13extern int eo_ttable[NTRANS][POW2TO11];
14extern int cp_ttable[NTRANS][FACTORIAL8];
15extern int co_ttable[NTRANS][POW3TO7];
16extern int cpos_ttable[NTRANS][FACTORIAL6];
17extern Move moves_ttable[NTRANS][NMOVES];
18
6Cube apply_trans(Trans t, Cube cube); 19Cube apply_trans(Trans t, Cube cube);
7Trans inverse_trans(Trans t); 20Trans inverse_trans(Trans t);
8Alg * rotation_alg(Trans i); 21Alg * rotation_alg(Trans i);

Generated with cgit - Back to sebastiano.tronto.net