diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-06 16:34:21 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-06 16:52:12 +0200 |
| commit | 57a7520545134ab95f7bb0397dcbe991c906a3e9 (patch) | |
| tree | 689e20a92ec3830533d2fb868e5dc141dec45877 /src/arch/portable.h | |
| parent | a5c9b857a346343443baf49679eebf12c18b4008 (diff) | |
| download | nissy-core-57a7520545134ab95f7bb0397dcbe991c906a3e9.tar.gz nissy-core-57a7520545134ab95f7bb0397dcbe991c906a3e9.zip | |
Added HTR solver
Diffstat (limited to 'src/arch/portable.h')
| -rw-r--r-- | src/arch/portable.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/arch/portable.h b/src/arch/portable.h index d673f15..c7f2de0 100644 --- a/src/arch/portable.h +++ b/src/arch/portable.h | |||
| @@ -367,3 +367,19 @@ is_eo_even(cube_t cube) | |||
| 367 | 367 | ||
| 368 | return count % 2 == 0; | 368 | return count % 2 == 0; |
| 369 | } | 369 | } |
| 370 | |||
| 371 | STATIC_INLINE uint64_t | ||
| 372 | coord_epudsep(cube_t cube) | ||
| 373 | { | ||
| 374 | return coord_epudsep_array(cube.edge); | ||
| 375 | } | ||
| 376 | |||
| 377 | STATIC_INLINE cube_t | ||
| 378 | invcoord_epudsep(uint64_t c) | ||
| 379 | { | ||
| 380 | cube_t ret; | ||
| 381 | |||
| 382 | ret = SOLVED_CUBE; | ||
| 383 | invcoord_epudsep_array(c, ret.edge); | ||
| 384 | return ret; | ||
| 385 | } | ||
