mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
atomic2: fix pessimisations
This commit is contained in:
parent
ec25deed2b
commit
531afe0f97
1 changed files with 1 additions and 10 deletions
|
@ -419,10 +419,6 @@ bool stx::multi_cas_record::commit() const noexcept
|
|||
|
||||
rec_unref(_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -448,7 +444,7 @@ bool stx::multi_cas_record::commit() const noexcept
|
|||
// Allocate global record and copy data
|
||||
const u64 id = rec_alloc();
|
||||
|
||||
for (u32 i = 0; i < (m_count / 2 + 1); i++)
|
||||
for (u32 i = 0; i < (m_count + 1) / 2; i++)
|
||||
{
|
||||
std::memcpy(s_records[id].m_list + i * 2, m_list + i * 2, sizeof(multi_cas_item) * 2);
|
||||
}
|
||||
|
@ -493,11 +489,6 @@ bool stx::multi_cas_record::commit() const noexcept
|
|||
|
||||
rec_unref(_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
s_records[id].m_state |= s_state_failure;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue