diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-23 12:26:52 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-23 12:26:52 +0200 |
| commit | d969dc0ad57d3e1e346df719cf9f2708ee87d2e7 (patch) | |
| tree | fefabeab15041177dc2458079664c358e4406a51 /src/core/transform.h | |
| parent | 6f750160507b87c9ea31899c0199e9b336e8ddae (diff) | |
| download | nissy-core-d969dc0ad57d3e1e346df719cf9f2708ee87d2e7.tar.gz nissy-core-d969dc0ad57d3e1e346df719cf9f2708ee87d2e7.zip | |
Almost added support for wide moves, only solve missing
Diffstat (limited to 'src/core/transform.h')
| -rw-r--r-- | src/core/transform.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/core/transform.h b/src/core/transform.h index 763a4ae..d1d2931 100644 --- a/src/core/transform.h +++ b/src/core/transform.h | |||
| @@ -25,7 +25,6 @@ STATIC cube_t transform_corners(cube_t, uint8_t); | |||
| 25 | STATIC cube_t transform(cube_t, uint8_t); | 25 | STATIC cube_t transform(cube_t, uint8_t); |
| 26 | STATIC oriented_cube_t applytrans(oriented_cube_t, const char *); | 26 | STATIC oriented_cube_t applytrans(oriented_cube_t, const char *); |
| 27 | STATIC_INLINE uint8_t inverse_trans(uint8_t); | 27 | STATIC_INLINE uint8_t inverse_trans(uint8_t); |
| 28 | STATIC uint8_t transform_move(uint8_t, uint8_t); | ||
| 29 | STATIC uint64_t symmetry_mask(cube_t); | 28 | STATIC uint64_t symmetry_mask(cube_t); |
| 30 | 29 | ||
| 31 | STATIC uint8_t | 30 | STATIC uint8_t |
| @@ -392,23 +391,6 @@ inverse_trans(uint8_t t) | |||
| 392 | return inverse_trans_table[t]; | 391 | return inverse_trans_table[t]; |
| 393 | } | 392 | } |
| 394 | 393 | ||
| 395 | STATIC uint8_t | ||
| 396 | transform_move(uint8_t m, uint8_t t) | ||
| 397 | { | ||
| 398 | uint8_t a, base, modifier; | ||
| 399 | |||
| 400 | a = moveaxis(m); | ||
| 401 | base = trans_move_table[t][a]; | ||
| 402 | if (movebase(m) != 2 * a) | ||
| 403 | base = moveopposite(base); | ||
| 404 | |||
| 405 | modifier = m % 3; | ||
| 406 | if (t >= TRANS_UFm) | ||
| 407 | modifier = 2 - modifier; | ||
| 408 | |||
| 409 | return base + modifier; | ||
| 410 | } | ||
| 411 | |||
| 412 | STATIC uint64_t | 394 | STATIC uint64_t |
| 413 | symmetry_mask(cube_t cube) | 395 | symmetry_mask(cube_t cube) |
| 414 | { | 396 | { |
