commit 4b7931caff4d04fa8e89c1fe1c8fcfbf3514285c parent c8bb7b7f573f951ff3b80eef80d0d26aa4f88f58 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri, 21 Apr 2023 23:30:34 +0200 Moved constants to steps Diffstat:
M | src/cube.h | | | 12 | ------------ |
M | src/steps.c | | | 7 | +++++++ |
2 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/src/cube.h b/src/cube.h @@ -1,17 +1,5 @@ #define false 0 #define true 1 -#define POW2TO6 64ULL -#define POW2TO11 2048ULL -#define POW2TO12 4096ULL -#define POW3TO7 2187ULL -#define POW3TO8 6561ULL -#define FACTORIAL4 24ULL -#define FACTORIAL6 720ULL -#define FACTORIAL7 5040ULL -#define FACTORIAL8 40320ULL -#define FACTORIAL12 479001600ULL -#define BINOM12ON4 495ULL -#define BINOM8ON4 70ULL #define NMOVES 55 #define NTRANS 48 #define MAX_ALG_LEN 22 diff --git a/src/steps.c b/src/steps.c @@ -5,6 +5,13 @@ #include "coord.h" #include "solve.h" +#define POW2TO11 2048ULL +#define POW3TO7 2187ULL +#define FACTORIAL4 24ULL +#define FACTORIAL8 40320ULL +#define BINOM12ON4 495ULL +#define BINOM8ON4 70ULL + static bool moveset_HTM(Move m); static bool moveset_eofb(Move m); static bool moveset_drud(Move m);