[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    amiconn: r24116 - trunk/firmware/target/arm
From:       mailer () svn ! rockbox ! org
Date:       2009-12-26 13:22:51
Message-ID: 200912261322.nBQDMptC019065 () giant ! haxx ! se
[Download RAW message or body]

Date: 2009-12-26 14:22:51 +0100 (Sat, 26 Dec 2009)
New Revision: 24116

Log Message:
ARM <= v5: Tiny optimisation exploiting the location of the table.

Modified:
   trunk/firmware/target/arm/ffs-arm.S

Modified: trunk/firmware/target/arm/ffs-arm.S
===================================================================
--- trunk/firmware/target/arm/ffs-arm.S	2009-12-25 18:35:15 UTC (rev 24115)
+++ trunk/firmware/target/arm/ffs-arm.S	2009-12-26 13:22:51 UTC (rev 24116)
@@ -52,13 +52,12 @@
     @
     @ Output modified to suit Rockbox purposes.
 
-    adr     r2, L_ffs_table
     orrne   r1, r1, r1, lsl #4       @ r1 = X * 0x11
     orrne   r1, r1, r1, lsl #6       @ r1 = X * 0x451
     rsbne   r1, r1, r1, lsl #16      @ r1 = X * 0x0450fbaf
 
     @ now lookup in table indexed on top 6 bits of r1
-    ldrb    r0, [ r2, r1, lsr #26 ]  @
+    ldrb    r0, [ pc, r1, lsr #26 ]  @ exploit location of table
     bx      lr                       @
 
 L_ffs_table:

_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic