diff options
Diffstat (limited to 'src/arch/common.h')
| -rw-r--r-- | src/arch/common.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/arch/common.h b/src/arch/common.h index 3e7867d..6c62a2e 100644 --- a/src/arch/common.h +++ b/src/arch/common.h | |||
| @@ -22,30 +22,30 @@ STATIC_INLINE cube_t compose_corners(cube_t, cube_t); | |||
| 22 | STATIC_INLINE cube_t compose(cube_t, cube_t); | 22 | STATIC_INLINE cube_t compose(cube_t, cube_t); |
| 23 | STATIC_INLINE cube_t inverse(cube_t); | 23 | STATIC_INLINE cube_t inverse(cube_t); |
| 24 | 24 | ||
| 25 | STATIC_INLINE int64_t coord_co(cube_t); | 25 | STATIC_INLINE uint64_t coord_co(cube_t); |
| 26 | STATIC_INLINE cube_t invcoord_co(int64_t); | 26 | STATIC_INLINE cube_t invcoord_co(uint64_t); |
| 27 | STATIC_INLINE int64_t coord_csep(cube_t); | 27 | STATIC_INLINE uint64_t coord_csep(cube_t); |
| 28 | STATIC_INLINE int64_t coord_cocsep(cube_t); | 28 | STATIC_INLINE uint64_t coord_cocsep(cube_t); |
| 29 | STATIC_INLINE int64_t coord_eo(cube_t); | 29 | STATIC_INLINE uint64_t coord_eo(cube_t); |
| 30 | STATIC_INLINE int64_t coord_esep(cube_t); | 30 | STATIC_INLINE uint64_t coord_esep(cube_t); |
| 31 | STATIC_INLINE cube_t invcoord_esep(int64_t); | 31 | STATIC_INLINE cube_t invcoord_esep(uint64_t); |
| 32 | 32 | ||
| 33 | STATIC_INLINE void copy_corners(cube_t [static 1], cube_t); | 33 | STATIC_INLINE void copy_corners(cube_t [static 1], cube_t); |
| 34 | STATIC_INLINE void copy_edges(cube_t [static 1], cube_t); | 34 | STATIC_INLINE void copy_edges(cube_t [static 1], cube_t); |
| 35 | STATIC_INLINE void set_eo(cube_t [static 1], int64_t); | 35 | STATIC_INLINE void set_eo(cube_t [static 1], uint64_t); |
| 36 | 36 | ||
| 37 | STATIC_INLINE void invcoord_esep_array(int64_t, int64_t, uint8_t[static 12]); | 37 | STATIC_INLINE void invcoord_esep_array(uint64_t, uint64_t, uint8_t[static 12]); |
| 38 | STATIC_INLINE cube_t invcoord_eoesep(int64_t); | 38 | STATIC_INLINE cube_t invcoord_eoesep(uint64_t); |
| 39 | 39 | ||
| 40 | STATIC_INLINE int64_t coord_cp(cube_t); | 40 | STATIC_INLINE uint64_t coord_cp(cube_t); |
| 41 | STATIC_INLINE cube_t invcoord_cp(int64_t); | 41 | STATIC_INLINE cube_t invcoord_cp(uint64_t); |
| 42 | STATIC_INLINE int64_t coord_epud(cube_t); | 42 | STATIC_INLINE uint64_t coord_epud(cube_t); |
| 43 | STATIC_INLINE cube_t invcoord_epud(int64_t); | 43 | STATIC_INLINE cube_t invcoord_epud(uint64_t); |
| 44 | 44 | ||
| 45 | STATIC_INLINE void | 45 | STATIC_INLINE void |
| 46 | invcoord_esep_array(int64_t set1, int64_t set2, uint8_t mem[static 12]) | 46 | invcoord_esep_array(uint64_t set1, uint64_t set2, uint8_t mem[static 12]) |
| 47 | { | 47 | { |
| 48 | int64_t bit1, bit2, i, j, jj, k, l, s, v, w, is1; | 48 | uint64_t bit1, bit2, i, j, jj, k, l, s, v, w, is1; |
| 49 | uint8_t slice[3] = {0}; | 49 | uint8_t slice[3] = {0}; |
| 50 | 50 | ||
| 51 | for (i = 0, j = 0, k = 4, l = 4; i < 12; i++) | 51 | for (i = 0, j = 0, k = 4, l = 4; i < 12; i++) |
| @@ -69,10 +69,10 @@ invcoord_esep_array(int64_t set1, int64_t set2, uint8_t mem[static 12]) | |||
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | STATIC_INLINE cube_t | 71 | STATIC_INLINE cube_t |
| 72 | invcoord_eoesep(int64_t i) | 72 | invcoord_eoesep(uint64_t i) |
| 73 | { | 73 | { |
| 74 | cube_t c; | 74 | cube_t c; |
| 75 | int64_t esep, eo; | 75 | uint64_t esep, eo; |
| 76 | 76 | ||
| 77 | esep = i >> INT64_C(11); | 77 | esep = i >> INT64_C(11); |
| 78 | eo = i % POW_2_11; | 78 | eo = i % POW_2_11; |
