mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
First part of fixing sign-compare warning (inside be_t).
This commit is contained in:
parent
0cf35e3b22
commit
771eff273b
31 changed files with 129 additions and 128 deletions
|
@ -472,7 +472,7 @@ s32 _spurs::detach_lv2_eq(vm::ptr<CellSpurs> spurs, u8 spuPort, bool spursCreate
|
|||
|
||||
if (_spurs::get_sdk_version() >= 0x180000)
|
||||
{
|
||||
if ((spurs->spuPortBits.load() & mask) == 0)
|
||||
if ((spurs->spuPortBits.load() & mask) == 0u)
|
||||
{
|
||||
return CELL_SPURS_CORE_ERROR_SRCH;
|
||||
}
|
||||
|
@ -499,7 +499,7 @@ void _spurs::handler_wait_ready(ppu_thread& ppu, vm::ptr<CellSpurs> spurs)
|
|||
|
||||
// Find a runnable workload
|
||||
spurs->handlerDirty = 0;
|
||||
if (spurs->exception == 0)
|
||||
if (spurs->exception == 0u)
|
||||
{
|
||||
bool foundRunnableWorkload = false;
|
||||
for (u32 i = 0; i < 16; i++)
|
||||
|
@ -510,7 +510,7 @@ void _spurs::handler_wait_ready(ppu_thread& ppu, vm::ptr<CellSpurs> spurs)
|
|||
{
|
||||
if (spurs->wklReadyCount1[i] ||
|
||||
spurs->wklSignal1.load() & (0x8000u >> i) ||
|
||||
(spurs->wklFlag.flag.load() == 0 &&
|
||||
(spurs->wklFlag.flag.load() == 0u &&
|
||||
spurs->wklFlagReceiver == static_cast<u8>(i)))
|
||||
{
|
||||
foundRunnableWorkload = true;
|
||||
|
@ -529,7 +529,7 @@ void _spurs::handler_wait_ready(ppu_thread& ppu, vm::ptr<CellSpurs> spurs)
|
|||
{
|
||||
if (spurs->wklIdleSpuCountOrReadyCount2[i] ||
|
||||
spurs->wklSignal2.load() & (0x8000u >> i) ||
|
||||
(spurs->wklFlag.flag.load() == 0 &&
|
||||
(spurs->wklFlag.flag.load() == 0u &&
|
||||
spurs->wklFlagReceiver == static_cast<u8>(i) + 0x10))
|
||||
{
|
||||
foundRunnableWorkload = true;
|
||||
|
@ -646,7 +646,7 @@ s32 _spurs::wakeup_shutdown_completion_waiter(ppu_thread& ppu, vm::ptr<CellSpurs
|
|||
return CELL_SPURS_POLICY_MODULE_ERROR_INVAL;
|
||||
}
|
||||
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0)
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0u)
|
||||
{
|
||||
return CELL_SPURS_POLICY_MODULE_ERROR_SRCH;
|
||||
}
|
||||
|
@ -674,7 +674,7 @@ s32 _spurs::wakeup_shutdown_completion_waiter(ppu_thread& ppu, vm::ptr<CellSpurs
|
|||
s32 rc = CELL_OK;
|
||||
if (!wklF->hook || wklEvent->load() & 0x10)
|
||||
{
|
||||
verify(HERE), (wklF->x28 == 2);
|
||||
verify(HERE), (wklF->x28 == 2u);
|
||||
rc = sys_semaphore_post(ppu, static_cast<u32>(wklF->sem), 1);
|
||||
}
|
||||
|
||||
|
@ -1607,7 +1607,7 @@ s32 cellSpursSetMaxContention(vm::ptr<CellSpurs> spurs, u32 wid, u32 maxContenti
|
|||
return CELL_SPURS_CORE_ERROR_INVAL;
|
||||
}
|
||||
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0)
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0u)
|
||||
{
|
||||
return CELL_SPURS_CORE_ERROR_SRCH;
|
||||
}
|
||||
|
@ -1651,7 +1651,7 @@ s32 cellSpursSetPriorities(vm::ptr<CellSpurs> spurs, u32 wid, vm::cptr<u8[8]> pr
|
|||
return CELL_SPURS_CORE_ERROR_INVAL;
|
||||
}
|
||||
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0)
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0u)
|
||||
{
|
||||
return CELL_SPURS_CORE_ERROR_SRCH;
|
||||
}
|
||||
|
@ -1730,14 +1730,14 @@ s32 cellSpursEnableExceptionEventHandler(ppu_thread& ppu, vm::ptr<CellSpurs> spu
|
|||
auto oldEnableEH = spurs->enableEH.exchange(flag ? 1u : 0u);
|
||||
if (flag)
|
||||
{
|
||||
if (oldEnableEH == 0)
|
||||
if (oldEnableEH == 0u)
|
||||
{
|
||||
rc = sys_spu_thread_group_connect_event(ppu, spurs->spuTG, spurs->eventQueue, SYS_SPU_THREAD_GROUP_EVENT_EXCEPTION);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (oldEnableEH == 1)
|
||||
if (oldEnableEH == 1u)
|
||||
{
|
||||
rc = sys_spu_thread_group_disconnect_event(ppu, spurs->eventQueue, SYS_SPU_THREAD_GROUP_EVENT_EXCEPTION);
|
||||
}
|
||||
|
@ -2290,7 +2290,7 @@ s32 cellSpursAddWorkloadWithAttribute(vm::ptr<CellSpurs> spurs, vm::ptr<u32> wid
|
|||
return CELL_SPURS_POLICY_MODULE_ERROR_ALIGN;
|
||||
}
|
||||
|
||||
if (attr->revision != 1)
|
||||
if (attr->revision != 1u)
|
||||
{
|
||||
return CELL_SPURS_POLICY_MODULE_ERROR_INVAL;
|
||||
}
|
||||
|
@ -2440,7 +2440,7 @@ s32 cellSpursReadyCountStore(vm::ptr<CellSpurs> spurs, u32 wid, u32 value)
|
|||
return CELL_SPURS_POLICY_MODULE_ERROR_INVAL;
|
||||
}
|
||||
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0)
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0u)
|
||||
{
|
||||
return CELL_SPURS_POLICY_MODULE_ERROR_SRCH;
|
||||
}
|
||||
|
@ -2503,7 +2503,7 @@ s32 cellSpursGetWorkloadData(vm::ptr<CellSpurs> spurs, vm::ptr<u64> data, u32 wi
|
|||
return CELL_SPURS_POLICY_MODULE_ERROR_INVAL;
|
||||
}
|
||||
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0)
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0u)
|
||||
{
|
||||
return CELL_SPURS_POLICY_MODULE_ERROR_SRCH;
|
||||
}
|
||||
|
@ -2566,7 +2566,7 @@ s32 _cellSpursWorkloadFlagReceiver(vm::ptr<CellSpurs> spurs, u32 wid, u32 is_set
|
|||
return CELL_SPURS_POLICY_MODULE_ERROR_INVAL;
|
||||
}
|
||||
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0)
|
||||
if ((spurs->wklEnabled.load() & (0x80000000u >> wid)) == 0u)
|
||||
{
|
||||
return CELL_SPURS_POLICY_MODULE_ERROR_SRCH;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue