diff options
Diffstat (limited to 'src/coord.h')
| -rw-r--r-- | src/coord.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/coord.h b/src/coord.h index 47c0579..4cd7e47 100644 --- a/src/coord.h +++ b/src/coord.h | |||
| @@ -6,9 +6,10 @@ | |||
| 6 | void gen_coord(Coordinate *coord); | 6 | void gen_coord(Coordinate *coord); |
| 7 | uint64_t index_coord(Coordinate *coord, Cube *cube, | 7 | uint64_t index_coord(Coordinate *coord, Cube *cube, |
| 8 | Trans *offtrans); | 8 | Trans *offtrans); |
| 9 | uint64_t indexers_getind(Indexer **is, Cube *c); | ||
| 10 | void indexers_makecube(Indexer **is, uint64_t ind, Cube *c); | ||
| 9 | uint64_t move_coord(Coordinate *coord, Move m, | 11 | uint64_t move_coord(Coordinate *coord, Move m, |
| 10 | uint64_t ind, Trans *offtrans); | 12 | uint64_t ind, Trans *offtrans); |
| 11 | bool test_coord(Coordinate *coord); | ||
| 12 | uint64_t trans_coord(Coordinate *coord, Trans t, uint64_t ind); | 13 | uint64_t trans_coord(Coordinate *coord, Trans t, uint64_t ind); |
| 13 | 14 | ||
| 14 | /* Base coordinates and their index functions ********************************/ | 15 | /* Base coordinates and their index functions ********************************/ |
| @@ -32,6 +33,8 @@ extern Coordinate coord_drud_sym16; | |||
| 32 | extern Coordinate coord_drudfin_noE_sym16; | 33 | extern Coordinate coord_drudfin_noE_sym16; |
| 33 | extern Coordinate coord_nxopt31; | 34 | extern Coordinate coord_nxopt31; |
| 34 | 35 | ||
| 36 | extern Coordinate *all_coordinates[]; | ||
| 37 | |||
| 35 | #else | 38 | #else |
| 36 | 39 | ||
| 37 | /* Indexers ******************************************************************/ | 40 | /* Indexers ******************************************************************/ |
| @@ -228,6 +231,28 @@ coord_nxopt31 = { | |||
| 228 | .base = {&coord_eofbepos_sym16, &coord_coud_cpudsep}, | 231 | .base = {&coord_eofbepos_sym16, &coord_coud_cpudsep}, |
| 229 | }; | 232 | }; |
| 230 | 233 | ||
| 234 | /* All coordinates ***********************************************************/ | ||
| 235 | |||
| 236 | Coordinate *all_coordinates[] = { | ||
| 237 | &coord_eofb, | ||
| 238 | &coord_coud, | ||
| 239 | &coord_cp, | ||
| 240 | &coord_cpudsep, | ||
| 241 | &coord_epos, | ||
| 242 | &coord_epe, | ||
| 243 | &coord_eposepe, | ||
| 244 | &coord_epud, | ||
| 245 | &coord_eofbepos, | ||
| 246 | &coord_coud_cpudsep, | ||
| 247 | &coord_eofbepos_sym16, | ||
| 248 | &coord_cp_sym16, | ||
| 249 | &coord_corners_sym16, | ||
| 250 | &coord_drud_sym16, | ||
| 251 | &coord_drudfin_noE_sym16, | ||
| 252 | &coord_nxopt31, | ||
| 253 | NULL | ||
| 254 | }; | ||
| 255 | |||
| 231 | #endif | 256 | #endif |
| 232 | 257 | ||
| 233 | #endif | 258 | #endif |
