From 455c7d9c8185acdd8c8fe74ad4a59a3e0756d75d Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 4 Feb 2023 18:00:31 +0100 Subject: Moved coordinate index consistency test to tests folder --- src/coord.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'src/coord.h') 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 @@ void gen_coord(Coordinate *coord); uint64_t index_coord(Coordinate *coord, Cube *cube, Trans *offtrans); +uint64_t indexers_getind(Indexer **is, Cube *c); +void indexers_makecube(Indexer **is, uint64_t ind, Cube *c); uint64_t move_coord(Coordinate *coord, Move m, uint64_t ind, Trans *offtrans); -bool test_coord(Coordinate *coord); uint64_t trans_coord(Coordinate *coord, Trans t, uint64_t ind); /* Base coordinates and their index functions ********************************/ @@ -32,6 +33,8 @@ extern Coordinate coord_drud_sym16; extern Coordinate coord_drudfin_noE_sym16; extern Coordinate coord_nxopt31; +extern Coordinate *all_coordinates[]; + #else /* Indexers ******************************************************************/ @@ -228,6 +231,28 @@ coord_nxopt31 = { .base = {&coord_eofbepos_sym16, &coord_coud_cpudsep}, }; +/* All coordinates ***********************************************************/ + +Coordinate *all_coordinates[] = { + &coord_eofb, + &coord_coud, + &coord_cp, + &coord_cpudsep, + &coord_epos, + &coord_epe, + &coord_eposepe, + &coord_epud, + &coord_eofbepos, + &coord_coud_cpudsep, + &coord_eofbepos_sym16, + &coord_cp_sym16, + &coord_corners_sym16, + &coord_drud_sym16, + &coord_drudfin_noE_sym16, + &coord_nxopt31, + NULL +}; + #endif #endif -- cgit v1.3