Applied the logic from r6691 to the LLE dec/add/sub functions so they work without ToMask. This should give a modest speedup for these.

Pierre's AR inc was already perfect and I only adjusted its logic a bit for visual consistency between the interpreter and JIT code.

Also applied Pierre's optimization from the LLE inc to the Int inc.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6707 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
mylek4
2011-01-01 13:19:07 +00:00
parent 60082853ec
commit 2f7da5d5d1
2 changed files with 159 additions and 250 deletions

View File

@ -105,7 +105,7 @@ inline u16 dsp_increment_addr_reg(u16 reg)
u32 nar = ar + 1;
if (((nar ^ ar) & ((wr | 1) << 1)) > wr)
if ((nar ^ ar) > ((wr | 1) << 1))
nar -= wr + 1;
return nar;
}