Rearrange memory reads.

This commit is contained in:
Bartosz Taudul 2018-04-03 19:35:28 +02:00
parent 197e513727
commit a3dd90529c

View File

@ -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;