mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 12:32:43 +00:00
Don't use std::popcount (workaround)
It seems MSVC uses POPCNT instruction when compiling for SSE2.
This commit is contained in:
parent
3788ef3e27
commit
58ba6d68bb
@ -236,7 +236,7 @@ Type* PPUTranslator::ScaleType(Type* type, s32 pow2)
|
||||
|
||||
uint scaled = type->getScalarSizeInBits();
|
||||
|
||||
verify(HERE), std::popcount(scaled) == 1;
|
||||
verify(HERE), (scaled & (scaled - 1)) == 0;
|
||||
|
||||
if (pow2 > 0)
|
||||
{
|
||||
|
@ -1182,7 +1182,7 @@ namespace vm
|
||||
if (is_write)
|
||||
std::swap(src, dst);
|
||||
|
||||
if (size <= 16 && std::popcount(size) == 1 && (addr & (size - 1)) == 0)
|
||||
if (size <= 16 && (size & (size - 1)) == 0 && (addr & (size - 1)) == 0)
|
||||
{
|
||||
if (is_write)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user