Move to AAL/PAL bits and address_bits
This commit is contained in:
committed by
Nathaniel Wesley Filardo
parent
e212ddd0e0
commit
15e3052087
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user