diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-01 23:32:19 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-01 23:32:19 +0200 |
| commit | 7ff76870242b6906b6f3caf22da3c094822ed140 (patch) | |
| tree | a99748ace111c77a30bb0e615b28cfb7aab0db1e /src/solvers/coord/eo.h | |
| parent | 1bd4691d9cc46ec75adbe899b289a1ebc5460721 (diff) | |
| download | nissy-core-7ff76870242b6906b6f3caf22da3c094822ed140.tar.gz nissy-core-7ff76870242b6906b6f3caf22da3c094822ed140.zip | |
Move is_eo_even to more appropriate module
Diffstat (limited to 'src/solvers/coord/eo.h')
| -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 | } | ||
