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

@@ -292,7 +292,7 @@ void test_external_pointer_large()
auto& alloc = ThreadAlloc::get();
constexpr size_t count_log = snmalloc::bits::is64() ? 5 : 3;
constexpr size_t count_log = Pal::address_bits > 32 ? 5 : 3;
constexpr size_t count = 1 << count_log;
// Pre allocate all the objects
size_t* objects[count];

View File

@@ -19,7 +19,7 @@ namespace test
{
size_t rand = (size_t)r.next();
size_t offset = bits::clz(rand);
if constexpr (bits::is64())
if constexpr (Pal::address_bits > 32)
{
if (offset > 30)
offset = 30;