Move to AAL/PAL bits and address_bits

This commit is contained in:
Nathaniel Wesley Filardo
2021-07-21 16:55:25 +01:00
committed by Nathaniel Wesley Filardo
parent e212ddd0e0
commit 15e3052087
6 changed files with 14 additions and 16 deletions

View File

@@ -83,7 +83,7 @@ namespace snmalloc
{
static_assert(
has_bounds_ == has_bounds, "Don't set SFINAE template parameter!");
constexpr size_t COVERED_BITS = bits::ADDRESS_BITS - GRANULARITY_BITS;
constexpr size_t COVERED_BITS = PAL::address_bits - GRANULARITY_BITS;
constexpr size_t ENTRIES = bits::one_at_bit(COVERED_BITS);
return ENTRIES * sizeof(T);
}
@@ -204,7 +204,7 @@ namespace snmalloc
}
else
{
return bits::one_at_bit(bits::ADDRESS_BITS - GRANULARITY_BITS);
return bits::one_at_bit(PAL::address_bits - GRANULARITY_BITS);
}
}