diff options
Diffstat (limited to 'src/solvers/coord')
| -rw-r--r-- | src/solvers/coord/eo.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/solvers/coord/eo.h b/src/solvers/coord/eo.h index 2d45a4f..5c823a1 100644 --- a/src/solvers/coord/eo.h +++ b/src/solvers/coord/eo.h | |||
| @@ -2,7 +2,6 @@ STATIC uint64_t coordinate_eo_coord(cube_t, const unsigned char *); | |||
| 2 | STATIC cube_t coordinate_eo_cube(uint64_t, const unsigned char *); | 2 | STATIC cube_t coordinate_eo_cube(uint64_t, const unsigned char *); |
| 3 | STATIC bool coordinate_eo_isnasty(uint64_t, const unsigned char *); | 3 | STATIC bool coordinate_eo_isnasty(uint64_t, const unsigned char *); |
| 4 | STATIC size_t coordinate_eo_gendata(unsigned char *); | 4 | STATIC size_t coordinate_eo_gendata(unsigned char *); |
| 5 | STATIC bool is_eo_even(cube_t); | ||
| 6 | 5 | ||
| 7 | STATIC coord_t coordinate_eo = { | 6 | STATIC coord_t coordinate_eo = { |
| 8 | .name = "EO", | 7 | .name = "EO", |
| @@ -57,16 +56,3 @@ coordinate_eo_gendata(unsigned char *data) | |||
| 57 | { | 56 | { |
| 58 | return 0; | 57 | return 0; |
| 59 | } | 58 | } |
| 60 | |||
| 61 | STATIC bool | ||
| 62 | is_eo_even(cube_t cube) | ||
| 63 | { | ||
| 64 | uint8_t c[8], e[12], i, count; | ||
| 65 | |||
| 66 | pieces(&cube, c, e); | ||
| 67 | |||
| 68 | for (i = 0, count = 0; i < 12; i++) | ||
| 69 | count += (e[i] & EOBIT) >> EOSHIFT; | ||
| 70 | |||
| 71 | return count % 2 == 0; | ||
| 72 | } | ||
