mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: remove useless volatile
Volatile is only useful as argument not the returned value
This commit is contained in:
parent
dd8666036c
commit
4d6d5c870c
|
@ -179,12 +179,12 @@ void VU_Thread::ReserveSpace(s32 size)
|
|||
}
|
||||
|
||||
// Use this when reading read_pos from ee thread
|
||||
__fi volatile s32 VU_Thread::GetReadPos()
|
||||
__fi s32 VU_Thread::GetReadPos()
|
||||
{
|
||||
return AtomicRead(read_pos);
|
||||
}
|
||||
// Use this when reading write_pos from vu thread
|
||||
__fi volatile s32 VU_Thread::GetWritePos()
|
||||
__fi s32 VU_Thread::GetWritePos()
|
||||
{
|
||||
return AtomicRead(volatize(write_pos));
|
||||
}
|
||||
|
@ -354,4 +354,4 @@ void VU_Thread::WriteRow(vifStruct& _vif)
|
|||
Write(MTVU_VIF_WRITE_ROW);
|
||||
Write(&_vif.MaskRow, sizeof(_vif.MaskRow));
|
||||
incWritePos();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,8 +83,8 @@ private:
|
|||
void WaitOnSize(s32 size);
|
||||
void ReserveSpace(s32 size);
|
||||
|
||||
volatile s32 GetReadPos();
|
||||
volatile s32 GetWritePos();
|
||||
s32 GetReadPos();
|
||||
s32 GetWritePos();
|
||||
u32* GetWritePtr();
|
||||
|
||||
void incReadPos(s32 offset);
|
||||
|
|
Loading…
Reference in New Issue