mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +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
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue