summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-09-02 15:20:02 -0400
committerLioncash <mathew1800@gmail.com>2015-09-02 15:20:02 -0400
commitdb98efdc9802aa470ab2faaa59d21562ec74d57e (patch)
treed02b657015fd973fef384d7871889b65d2eedeff /Source
parent3b65c4070cc619aeb5aed803eeeb5a59b0057ce0 (diff)
GPFifo: Adjust parameter names
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/HW/GPFifo.cpp38
-rw-r--r--Source/Core/Core/HW/GPFifo.h16
2 files changed, 24 insertions, 30 deletions
diff --git a/Source/Core/Core/HW/GPFifo.cpp b/Source/Core/Core/HW/GPFifo.cpp
index 432cff18e2..cc09a7023d 100644
--- a/Source/Core/Core/HW/GPFifo.cpp
+++ b/Source/Core/Core/HW/GPFifo.cpp
@@ -104,57 +104,51 @@ void CheckGatherPipe()
}
}
-void Write8(const u8 _iValue)
+void Write8(const u8 value)
{
-// LOG(GPFIFO, "GPFIFO #%x: 0x%02x",ProcessorInterface::Fifo_CPUWritePointer+m_gatherPipeCount, _iValue);
- FastWrite8(_iValue);
+ FastWrite8(value);
CheckGatherPipe();
}
-void Write16(const u16 _iValue)
+void Write16(const u16 value)
{
-// LOG(GPFIFO, "GPFIFO #%x: 0x%04x",ProcessorInterface::Fifo_CPUWritePointer+m_gatherPipeCount, _iValue);
- FastWrite16(_iValue);
+ FastWrite16(value);
CheckGatherPipe();
}
-void Write32(const u32 _iValue)
+void Write32(const u32 value)
{
-//#ifdef _DEBUG
-// float floatvalue = *(float*)&_iValue;
-// LOG(GPFIFO, "GPFIFO #%x: 0x%08x / %f",ProcessorInterface::Fifo_CPUWritePointer+m_gatherPipeCount, _iValue, floatvalue);
-//#endif
- FastWrite32(_iValue);
+ FastWrite32(value);
CheckGatherPipe();
}
-void Write64(const u64 _iValue)
+void Write64(const u64 value)
{
- FastWrite64(_iValue);
+ FastWrite64(value);
CheckGatherPipe();
}
-void FastWrite8(const u8 _iValue)
+void FastWrite8(const u8 value)
{
- m_gatherPipe[m_gatherPipeCount] = _iValue;
+ m_gatherPipe[m_gatherPipeCount] = value;
++m_gatherPipeCount;
}
-void FastWrite16(const u16 _iValue)
+void FastWrite16(const u16 value)
{
- *(u16*)(&m_gatherPipe[m_gatherPipeCount]) = Common::swap16(_iValue);
+ *(u16*)(&m_gatherPipe[m_gatherPipeCount]) = Common::swap16(value);
m_gatherPipeCount += 2;
}
-void FastWrite32(const u32 _iValue)
+void FastWrite32(const u32 value)
{
- *(u32*)(&m_gatherPipe[m_gatherPipeCount]) = Common::swap32(_iValue);
+ *(u32*)(&m_gatherPipe[m_gatherPipeCount]) = Common::swap32(value);
m_gatherPipeCount += 4;
}
-void FastWrite64(const u64 _iValue)
+void FastWrite64(const u64 value)
{
- *(u64*)(&m_gatherPipe[m_gatherPipeCount]) = Common::swap64(_iValue);
+ *(u64*)(&m_gatherPipe[m_gatherPipeCount]) = Common::swap64(value);
m_gatherPipeCount += 8;
}
diff --git a/Source/Core/Core/HW/GPFifo.h b/Source/Core/Core/HW/GPFifo.h
index d455edcee4..686120daa9 100644
--- a/Source/Core/Core/HW/GPFifo.h
+++ b/Source/Core/Core/HW/GPFifo.h
@@ -34,16 +34,16 @@ void FastCheckGatherPipe();
bool IsEmpty();
// Write
-void Write8(const u8 _iValue);
-void Write16(const u16 _iValue);
-void Write32(const u32 _iValue);
-void Write64(const u64 _iValue);
+void Write8(u8 value);
+void Write16(u16 value);
+void Write32(u32 value);
+void Write64(u64 value);
// These expect pre-byteswapped values
// Also there's an upper limit of about 512 per batch
// Most likely these should be inlined into JIT instead
-void FastWrite8(const u8 _iValue);
-void FastWrite16(const u16 _iValue);
-void FastWrite32(const u32 _iValue);
-void FastWrite64(const u64 _iValue);
+void FastWrite8(u8 value);
+void FastWrite16(u16 value);
+void FastWrite32(u32 value);
+void FastWrite64(u64 value);
}