diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-16 11:46:33 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-16 11:46:38 +0200 |
| commit | f9570e5089eeabe32be84ab0507c1d9df99650af (patch) | |
| tree | a7e89e26b84d833fcc29fecc19d5e6f6c61af3e6 /src/solvers/h48/gendata_h48.h | |
| parent | 7c994d0ee99d8b69bf958f1559db3a294f459e3e (diff) | |
| download | nissy-core-f9570e5089eeabe32be84ab0507c1d9df99650af.tar.gz nissy-core-f9570e5089eeabe32be84ab0507c1d9df99650af.zip | |
Removed redundant coordinate computation
Diffstat (limited to 'src/solvers/h48/gendata_h48.h')
| -rw-r--r-- | src/solvers/h48/gendata_h48.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/solvers/h48/gendata_h48.h b/src/solvers/h48/gendata_h48.h index 4400011..55c4f34 100644 --- a/src/solvers/h48/gendata_h48.h +++ b/src/solvers/h48/gendata_h48.h | |||
| @@ -24,8 +24,6 @@ STATIC_INLINE uint8_t get_h48_pval_atomic( | |||
| 24 | _Atomic const uint8_t *, int64_t, uint8_t); | 24 | _Atomic const uint8_t *, int64_t, uint8_t); |
| 25 | STATIC_INLINE void set_h48_pval_atomic( | 25 | STATIC_INLINE void set_h48_pval_atomic( |
| 26 | _Atomic uint8_t *, int64_t, uint8_t, uint8_t); | 26 | _Atomic uint8_t *, int64_t, uint8_t, uint8_t); |
| 27 | STATIC_INLINE uint8_t get_h48_bound( | ||
| 28 | cube_t, uint32_t, uint8_t, uint8_t, const uint8_t *); | ||
| 29 | 27 | ||
| 30 | size_t gendata_h48_derive(uint8_t, const void *, void *); | 28 | size_t gendata_h48_derive(uint8_t, const void *, void *); |
| 31 | 29 | ||
| @@ -686,20 +684,6 @@ set_h48_pval_atomic(_Atomic uint8_t *table, int64_t i, uint8_t k, uint8_t val) | |||
| 686 | | (val << H48_SHIFT(i, k)); | 684 | | (val << H48_SHIFT(i, k)); |
| 687 | } | 685 | } |
| 688 | 686 | ||
| 689 | STATIC_INLINE uint8_t | ||
| 690 | get_h48_bound( | ||
| 691 | cube_t cube, | ||
| 692 | uint32_t cdata, | ||
| 693 | uint8_t h, | ||
| 694 | uint8_t k, | ||
| 695 | const uint8_t *table | ||
| 696 | ) { | ||
| 697 | int64_t coord; | ||
| 698 | |||
| 699 | coord = coord_h48_edges(cube, COCLASS(cdata), TTREP(cdata), h); | ||
| 700 | return get_h48_pval(table, coord, k); | ||
| 701 | } | ||
| 702 | |||
| 703 | size_t | 687 | size_t |
| 704 | gendata_h48_derive(uint8_t h, const void *fulltable, void *buf) | 688 | gendata_h48_derive(uint8_t h, const void *fulltable, void *buf) |
| 705 | { | 689 | { |
