DSPLLE - 0xa100 figured out = abs(), small mul fix, cleaning, some extra comments

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5216 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marko Pusljar
2010-03-19 21:53:41 +00:00
parent 4f56d8144b
commit 503bf545a3
9 changed files with 161 additions and 256 deletions

View File

@ -218,11 +218,9 @@ inline s64 dsp_get_long_prod()
return val;
}
inline s64 dsp_get_long_prod_prodl_zero()
inline s64 dsp_get_long_prod_round_prodl()
{
s64 tempprod = dsp_get_long_prod();
tempprod = (tempprod & ~0xffff)+(((tempprod & 0xffff) >= 0x8000) ? 0x10000 : 0);
return tempprod;
return (dsp_get_long_prod() + 0x8000) & ~0xffff;
}
// For accurate emulation, this is wrong - but the real prod registers behave