diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 08:53:38 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 08:55:25 +0200 |
| commit | fd5ddb3db9f50411ca579d84f225f265ca35b56a (patch) | |
| tree | b659112cc0e2abd6c7edb08b0938c0d2de4ca066 /src/solvers/h48/coordinate.h | |
| parent | c9e2d6466e42d6b779ac9ffa7c5ee9a9c7558df8 (diff) | |
| download | nissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.tar.gz nissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.zip | |
Rename constants from _underscore to CAPS
Diffstat (limited to 'src/solvers/h48/coordinate.h')
| -rw-r--r-- | src/solvers/h48/coordinate.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/solvers/h48/coordinate.h b/src/solvers/h48/coordinate.h index 47b805d..4da5575 100644 --- a/src/solvers/h48/coordinate.h +++ b/src/solvers/h48/coordinate.h | |||
| @@ -1,15 +1,15 @@ | |||
| 1 | #define H48_ESIZE(h) ((_12c4 * _8c4) << (int64_t)(h)) | 1 | #define H48_ESIZE(h) ((COMB_12_4 * COMB_8_4) << (int64_t)(h)) |
| 2 | 2 | ||
| 3 | #define COCLASS_MASK (UINT32_C(0xFFFF) << UINT32_C(16)) | 3 | #define COCLASS_MASK (UINT32_C(0xFFFF) << UINT32_C(16)) |
| 4 | #define COCLASS(x) (((x) & COCLASS_MASK) >> UINT32_C(16)) | 4 | #define COCLASS(x) (((x) & COCLASS_MASK) >> UINT32_C(16)) |
| 5 | #define TTREP_MASK (UINT32_C(0xFF) << UINT32_C(8)) | 5 | #define TTREP_MASK (UINT32_C(0xFF) << UINT32_C(8)) |
| 6 | #define TTREP(x) (((x) & TTREP_MASK) >> UINT32_C(8)) | 6 | #define TTREP(x) (((x) & TTREP_MASK) >> UINT32_C(8)) |
| 7 | 7 | ||
| 8 | _static_inline int64_t coord_h48(cube_t, const uint32_t *, uint8_t); | 8 | STATIC_INLINE int64_t coord_h48(cube_t, const uint32_t *, uint8_t); |
| 9 | _static_inline int64_t coord_h48_edges(cube_t, int64_t, uint8_t, uint8_t); | 9 | STATIC_INLINE int64_t coord_h48_edges(cube_t, int64_t, uint8_t, uint8_t); |
| 10 | _static_inline cube_t invcoord_h48(int64_t, const cube_t *, uint8_t); | 10 | STATIC_INLINE cube_t invcoord_h48(int64_t, const cube_t *, uint8_t); |
| 11 | 11 | ||
| 12 | _static_inline int64_t | 12 | STATIC_INLINE int64_t |
| 13 | coord_h48(cube_t c, const uint32_t *cocsepdata, uint8_t h) | 13 | coord_h48(cube_t c, const uint32_t *cocsepdata, uint8_t h) |
| 14 | { | 14 | { |
| 15 | int64_t cocsep, coclass; | 15 | int64_t cocsep, coclass; |
| @@ -26,7 +26,7 @@ coord_h48(cube_t c, const uint32_t *cocsepdata, uint8_t h) | |||
| 26 | return coord_h48_edges(c, coclass, ttrep, h); | 26 | return coord_h48_edges(c, coclass, ttrep, h); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | _static_inline int64_t | 29 | STATIC_INLINE int64_t |
| 30 | coord_h48_edges(cube_t c, int64_t coclass, uint8_t ttrep, uint8_t h) | 30 | coord_h48_edges(cube_t c, int64_t coclass, uint8_t ttrep, uint8_t h) |
| 31 | { | 31 | { |
| 32 | cube_t d; | 32 | cube_t d; |
| @@ -45,7 +45,7 @@ This function does not necessarily return a cube whose coordinate is | |||
| 45 | the given value, because it works up to symmetry. This means that the | 45 | the given value, because it works up to symmetry. This means that the |
| 46 | returned cube is a transformed cube of one that gives the correct value. | 46 | returned cube is a transformed cube of one that gives the correct value. |
| 47 | */ | 47 | */ |
| 48 | _static_inline cube_t | 48 | STATIC_INLINE cube_t |
| 49 | invcoord_h48(int64_t i, const cube_t *crep, uint8_t h) | 49 | invcoord_h48(int64_t i, const cube_t *crep, uint8_t h) |
| 50 | { | 50 | { |
| 51 | cube_t ret; | 51 | cube_t ret; |
