Remove unneeded instruction from the coldfire ffs function and fix a wrong comment

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24030 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2009-12-16 16:39:24 +00:00
parent c4b6d5c12e
commit aa32e55ce7
2 changed files with 3 additions and 2 deletions

View file

@ -205,7 +205,7 @@ int get_cpu_boost_counter(void);
#define UNLIKELY(x) (x)
#endif
/* returns index of first set bit + 1 or 0 if no bits are set */
/* returns index of first set bit or 32 if no bits are set */
int find_first_set_bit(uint32_t val);
static inline __attribute__((always_inline))

View file

@ -57,7 +57,8 @@ find_first_set_bit:
| now lookup in table indexed on top 6 bits of %d0
moveq.l #26, %d0 | %d0 = final shift count
lsr.l %d0, %d1 |
clr.l %d0 |
| the top 24 bits of d0 are 0 so just load the value over it
move.b (%a0, %d1.l), %d0 |
rts |