mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
DSPLLE: small cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3981 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c4dda436c6
commit
32d213a823
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user