summaryrefslogtreecommitdiff
path: root/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-08-14 10:55:07 +0000
committernakeee <nakeee@gmail.com>2009-08-14 10:55:07 +0000
commit32d213a823453474dce37dc49a57cae7c76143ee (patch)
treeb201149021dfd5596f10200bfb3d59c02e4ff4e0 /Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
parentc4dda436c69596644178f3b32e15ebdcc24629e6 (diff)
DSPLLE: small cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3981 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPIntCCUtil.cpp')
-rw-r--r--Source/Core/DSPCore/Src/DSPIntCCUtil.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp b/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
index 9b78a11ab6..147c239f71 100644
--- a/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
+++ b/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
@@ -28,7 +28,7 @@ namespace DSPInterpreter {
void Update_SR_Register64(s64 _Value)
{
- // TODO: Should also set 0x10 and 0x01
+ // TODO: Should also set 0x10 and 0x01 (also 0x02?)
g_dsp.r[DSP_REG_SR] &= ~SR_CMP_MASK;
if (_Value < 0)
@@ -42,7 +42,7 @@ void Update_SR_Register64(s64 _Value)
}
// Checks if top bits are equal, what is it good for?
- if ((_Value >> 62) == 0 || _Value >> 62 == 3)
+ if (((_Value >> 62) == 0) || (_Value >> 62 == 3))
{
g_dsp.r[DSP_REG_SR] |= SR_TOP2BITS;
}
@@ -66,7 +66,7 @@ void Update_SR_Register16(s16 _Value)
}
// Checks if top bits are equal, what is it good for?
- if ((_Value >> 14) == 0 || _Value >> 14 == 3)
+ if (((_Value >> 14) == 0) || ((_Value >> 14) == 3))
{
g_dsp.r[DSP_REG_SR] |= SR_TOP2BITS;
}
@@ -85,12 +85,9 @@ void Update_SR_LZ(s64 value) {
}
-int GetMultiplyModifier()
+inline int GetMultiplyModifier()
{
- if (g_dsp.r[DSP_REG_SR] & SR_MUL_MODIFY)
- return 1;
- else
- return 2;
+ return (g_dsp.r[DSP_REG_SR] & SR_MUL_MODIFY)?1:2;
}
inline bool isCarry() {