diff options
author | Bertrand Augereau | 2007-12-07 00:01:12 +0000 |
---|---|---|
committer | Bertrand Augereau | 2007-12-07 00:01:12 +0000 |
commit | 3c9c3fffc7d94f7e67b67a477437c012ba6c7787 (patch) | |
tree | 0e64290f54f9bdb31f6014ea41abd97d44af5842 /backends/platform | |
parent | 65779599de285edb707c4a5fa4e8506385bfc54a (diff) | |
download | scummvm-rg350-3c9c3fffc7d94f7e67b67a477437c012ba6c7787.tar.gz scummvm-rg350-3c9c3fffc7d94f7e67b67a477437c012ba6c7787.tar.bz2 scummvm-rg350-3c9c3fffc7d94f7e67b67a477437c012ba6c7787.zip |
NDS: A few cycles saved in the inner loop of the CPU scaler
svn-id: r29742
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/ds/arm9/source/blitters_arm.s | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/backends/platform/ds/arm9/source/blitters_arm.s b/backends/platform/ds/arm9/source/blitters_arm.s index 12dd2c2b0f..b1a0e73f92 100644 --- a/backends/platform/ds/arm9/source/blitters_arm.s +++ b/backends/platform/ds/arm9/source/blitters_arm.s @@ -261,7 +261,7 @@ Rescale_320x256xPAL8_To_256x256x1555: @ r3 = srcStride STMFD r13!,{r4-r5,r8-r11,r14} MOV r8, #0x0000001F - ORR r8, r8,#0x00007C00 + ORR r8, r8,#0x0000FC00 ORR r8, r8,#0x03E00000 @ r8 = mask LDR r9, [r13,#7*4] @ r9 = palette @@ -273,6 +273,7 @@ palLoop: SUBS r14,r14,#1 ORR r10,r10,r10,LSL #16 AND r10,r10,r8 @ r10 = separated palette entry + ORR r10,r10,#0x00008000 STR r10,[r5], #4 BGT palLoop @@ -312,10 +313,10 @@ xLoop4: ORR r11,r11,r11,LSR #16 @ r11= dst2 ORR r12,r12,r12,LSR #16 @ r12= dst3 - ORR r9, r9, #0x8000 - ORR r10,r10,#0x8000 - ORR r11,r11,#0x8000 - ORR r12,r12,#0x8000 + @ORR r9, r9, #0x8000 + @ORR r10,r10,#0x8000 + @ORR r11,r11,#0x8000 + @ORR r12,r12,#0x8000 STRH r9, [r0],#2 STRH r10,[r0],#2 |