mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Rearrange memory reads.
This commit is contained in:
parent
197e513727
commit
a3dd90529c
@ -4049,6 +4049,8 @@ Vector<int8_t> View::GetMemoryPages() const
|
||||
|
||||
const auto a0 = alloc.ptr - mem.low;
|
||||
const auto a1 = a0 + alloc.size;
|
||||
int8_t val = alloc.timeFree < 0 ? 1 : ( alloc.timeFree > zvMid ? 1 : -1 );
|
||||
|
||||
const auto p0 = a0 >> PageChunkBits;
|
||||
const auto p1 = a1 >> PageChunkBits;
|
||||
|
||||
@ -4057,8 +4059,6 @@ Vector<int8_t> View::GetMemoryPages() const
|
||||
const auto c0 = b0 >> ChunkBits;
|
||||
const auto c1 = b1 >> ChunkBits;
|
||||
|
||||
int8_t val = alloc.timeFree < 0 ? 1 : ( alloc.timeFree > zvMid ? 1 : -1 );
|
||||
|
||||
if( p0 == p1 )
|
||||
{
|
||||
auto page = pgptr + p0 * PageSize;
|
||||
@ -4084,6 +4084,8 @@ Vector<int8_t> View::GetMemoryPages() const
|
||||
{
|
||||
const auto a0 = alloc.ptr - mem.low;
|
||||
const auto a1 = a0 + alloc.size;
|
||||
const int8_t val = alloc.timeFree < 0 ? 1 : -1;
|
||||
|
||||
const auto p0 = a0 >> PageChunkBits;
|
||||
const auto p1 = a1 >> PageChunkBits;
|
||||
|
||||
@ -4092,8 +4094,6 @@ Vector<int8_t> View::GetMemoryPages() const
|
||||
const auto c0 = b0 >> ChunkBits;
|
||||
const auto c1 = b1 >> ChunkBits;
|
||||
|
||||
int8_t val = alloc.timeFree < 0 ? 1 : -1;
|
||||
|
||||
if( p0 == p1 )
|
||||
{
|
||||
auto page = pgptr + p0 * PageSize;
|
||||
|
Loading…
Reference in New Issue
Block a user