summaryrefslogtreecommitdiff
path: root/firmware/asm/m68k
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-01-27 11:47:49 -0500
committerMichael Sevakis <jethead71@rockbox.org>2012-01-27 11:51:25 -0500
commit74736fcfc95e786ef5aad46c73e1c53365d5d3d8 (patch)
tree704c59443eee343e1990ddd40f6005913adae73c /firmware/asm/m68k
parentc6d69ae8fccf4e1e11fbcb55f98348d5e8f05d64 (diff)
downloadrockbox-74736fcfc95e786ef5aad46c73e1c53365d5d3d8.tar.gz
rockbox-74736fcfc95e786ef5aad46c73e1c53365d5d3d8.zip
find_first_set_bit tweaks
Correct sizing in m68k asm. Make the gerneric version far more generic. Change-Id: I32945f7431771979b3fe0da5472bdb110fd054ae
Diffstat (limited to 'firmware/asm/m68k')
-rw-r--r--firmware/asm/m68k/ffs.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/asm/m68k/ffs.S b/firmware/asm/m68k/ffs.S
index 2a39ae5bcd..87421ffe10 100644
--- a/firmware/asm/m68k/ffs.S
+++ b/firmware/asm/m68k/ffs.S
@@ -61,6 +61,7 @@ find_first_set_bit:
61 | the top 24 bits of d0 are 0 so just load the value over it 61 | the top 24 bits of d0 are 0 so just load the value over it
62 move.b (%a0, %d1.l), %d0 | 62 move.b (%a0, %d1.l), %d0 |
63 rts | 63 rts |
64 .size find_first_set_bit, .-find_first_set_bit
64 65
65 .section .irodata 66 .section .irodata
66L_ffs_table: 67L_ffs_table:
@@ -74,5 +75,4 @@ L_ffs_table:
74 .byte 9, 0, 0, 24, 0, 0, 20, 26 | 40-47 75 .byte 9, 0, 0, 24, 0, 0, 20, 26 | 40-47
75 .byte 30, 0, 0, 0, 0, 23, 0, 19 | 48-55 76 .byte 30, 0, 0, 0, 0, 23, 0, 19 | 48-55
76 .byte 29, 0, 22, 18, 28, 17, 16, 0 | 56-63 77 .byte 29, 0, 22, 18, 28, 17, 16, 0 | 56-63
77 78 .size L_ffs_table, .-L_ffs_table
78 .size find_first_set_bit, .-find_first_set_bit