mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 14:03:52 +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 a0 = alloc.ptr - mem.low;
|
||||||
const auto a1 = a0 + alloc.size;
|
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 p0 = a0 >> PageChunkBits;
|
||||||
const auto p1 = a1 >> PageChunkBits;
|
const auto p1 = a1 >> PageChunkBits;
|
||||||
|
|
||||||
@ -4057,8 +4059,6 @@ Vector<int8_t> View::GetMemoryPages() const
|
|||||||
const auto c0 = b0 >> ChunkBits;
|
const auto c0 = b0 >> ChunkBits;
|
||||||
const auto c1 = b1 >> ChunkBits;
|
const auto c1 = b1 >> ChunkBits;
|
||||||
|
|
||||||
int8_t val = alloc.timeFree < 0 ? 1 : ( alloc.timeFree > zvMid ? 1 : -1 );
|
|
||||||
|
|
||||||
if( p0 == p1 )
|
if( p0 == p1 )
|
||||||
{
|
{
|
||||||
auto page = pgptr + p0 * PageSize;
|
auto page = pgptr + p0 * PageSize;
|
||||||
@ -4084,6 +4084,8 @@ Vector<int8_t> View::GetMemoryPages() const
|
|||||||
{
|
{
|
||||||
const auto a0 = alloc.ptr - mem.low;
|
const auto a0 = alloc.ptr - mem.low;
|
||||||
const auto a1 = a0 + alloc.size;
|
const auto a1 = a0 + alloc.size;
|
||||||
|
const int8_t val = alloc.timeFree < 0 ? 1 : -1;
|
||||||
|
|
||||||
const auto p0 = a0 >> PageChunkBits;
|
const auto p0 = a0 >> PageChunkBits;
|
||||||
const auto p1 = a1 >> PageChunkBits;
|
const auto p1 = a1 >> PageChunkBits;
|
||||||
|
|
||||||
@ -4092,8 +4094,6 @@ Vector<int8_t> View::GetMemoryPages() const
|
|||||||
const auto c0 = b0 >> ChunkBits;
|
const auto c0 = b0 >> ChunkBits;
|
||||||
const auto c1 = b1 >> ChunkBits;
|
const auto c1 = b1 >> ChunkBits;
|
||||||
|
|
||||||
int8_t val = alloc.timeFree < 0 ? 1 : -1;
|
|
||||||
|
|
||||||
if( p0 == p1 )
|
if( p0 == p1 )
|
||||||
{
|
{
|
||||||
auto page = pgptr + p0 * PageSize;
|
auto page = pgptr + p0 * PageSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user