core: a tiny speedup by unrolling a loop which was intended to unroll

This commit is contained in:
zeromus 2009-11-29 06:53:46 +00:00
parent c5834ad616
commit 73fa6826f9
1 changed files with 7 additions and 1 deletions

View File

@ -2022,7 +2022,13 @@ void DmaController::doCopy()
void triggerDma(EDMAMode mode)
{
for(int i=0;i<2;i++) for(int j=0;j<4;j++) MMU_new.dma[i][j].tryTrigger(mode);
MACRODO2(2, {
const int i=X;
MACRODO4(4, {
const int j=X;
MMU_new.dma[i][j].tryTrigger(mode);
});
});
}
void DmaController::tryTrigger(EDMAMode mode)