alloc: de-static external_pointer
Like alloc_size, this will require amplification internally. This patch also restores performance to the status quo ante; Clang can once again see enough to generate the same code as it did before de-static-ing alloc_size.
This commit is contained in:
committed by
Matthew Parkinson
parent
1042fc908a
commit
f295a3f191
@@ -73,7 +73,7 @@ namespace test
|
||||
size_t size = *external_ptr;
|
||||
size_t offset = (size >> 4) * (rand & 15);
|
||||
void* interior_ptr = pointer_offset(external_ptr, offset);
|
||||
void* calced_external = Alloc::external_pointer(interior_ptr);
|
||||
void* calced_external = alloc->external_pointer(interior_ptr);
|
||||
if (calced_external != external_ptr)
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user