[Scummvm-cvs-logs] SF.net SVN: scummvm: [29742] scummvm/trunk/backends/platform/ds/arm9/source /blitters_arm.s

Tramboi at users.sourceforge.net Tramboi at users.sourceforge.net
Fri Dec 7 01:01:12 CET 2007


Revision: 29742
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29742&view=rev
Author:   Tramboi
Date:     2007-12-06 16:01:12 -0800 (Thu, 06 Dec 2007)

Log Message:
-----------
NDS: A few cycles saved in the inner loop of the CPU scaler

Modified Paths:
--------------
    scummvm/trunk/backends/platform/ds/arm9/source/blitters_arm.s

Modified: scummvm/trunk/backends/platform/ds/arm9/source/blitters_arm.s
===================================================================
--- scummvm/trunk/backends/platform/ds/arm9/source/blitters_arm.s	2007-12-06 21:11:26 UTC (rev 29741)
+++ scummvm/trunk/backends/platform/ds/arm9/source/blitters_arm.s	2007-12-07 00:01:12 UTC (rev 29742)
@@ -261,7 +261,7 @@
 	@ 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 @@
 	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 @@
 	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


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list