mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-09 04:19:10 -04:00
refactor(ricepp): some consting
This commit is contained in:
parent
f1672b6c78
commit
58a8fce885
@ -36,7 +36,8 @@ namespace ricepp::detail {
|
||||
template <unsigned FsMax, typename T>
|
||||
requires std::unsigned_integral<typename T::value_type>
|
||||
[[nodiscard]] std::pair<unsigned, unsigned>
|
||||
compute_best_split(T const& delta, size_t size, uint64_t sum) noexcept {
|
||||
compute_best_split(T const& delta, size_t const size,
|
||||
uint64_t const sum) noexcept {
|
||||
auto bits_for_fs = [&](auto fs) {
|
||||
auto const mask = std::numeric_limits<typename T::value_type>::max() << fs;
|
||||
unsigned bits{0};
|
||||
|
Loading…
x
Reference in New Issue
Block a user