mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 05:45:21 +00:00
Replace utils::popcnt32 with std::popcount
Cleanup includes.
This commit is contained in:
parent
032e7c0491
commit
f72af2973d
5 changed files with 2 additions and 22 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#include "stdafx.h"
|
||||
#include "Emu/IdManager.h"
|
||||
#include "Emu/Cell/PPUModule.h"
|
||||
#include "Utilities/asm.h"
|
||||
#include "Emu/Cell/SPUThread.h"
|
||||
#include "Emu/Cell/lv2/sys_lwmutex.h"
|
||||
#include "Emu/Cell/lv2/sys_lwcond.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
#include "stdafx.h"
|
||||
#include "Emu/Cell/PPUModule.h"
|
||||
#include "Utilities/asm.h"
|
||||
#include "Emu/Cell/lv2/sys_event.h"
|
||||
#include "Emu/Cell/lv2/sys_process.h"
|
||||
#include "cellSync.h"
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ Type* PPUTranslator::ScaleType(Type* type, s32 pow2)
|
|||
|
||||
uint scaled = type->getScalarSizeInBits();
|
||||
|
||||
verify(HERE), utils::popcnt32(scaled) == 1;
|
||||
verify(HERE), std::popcount(scaled) == 1;
|
||||
|
||||
if (pow2 > 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
#include "Utilities/Thread.h"
|
||||
#include "Utilities/VirtualMemory.h"
|
||||
#include "Utilities/address_range.h"
|
||||
#include "Utilities/asm.h"
|
||||
#include "Emu/CPU/CPUThread.h"
|
||||
#include "Emu/Cell/lv2/sys_memory.h"
|
||||
#include "Emu/RSX/GSRender.h"
|
||||
|
|
@ -1105,7 +1104,7 @@ namespace vm
|
|||
if (is_write)
|
||||
std::swap(src, dst);
|
||||
|
||||
if (size <= 16 && utils::popcnt32(size) == 1 && (addr & (size - 1)) == 0)
|
||||
if (size <= 16 && std::popcount(size) == 1 && (addr & (size - 1)) == 0)
|
||||
{
|
||||
if (is_write)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue