Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: More efficient bitswap.s
From: Magnus Holmgren (lear_at_algonet.se)
Date: 2002-10-24


Ray Ransom wrote:

> Here is a more efficient version of bitswap.s. It has one less instruction
> in the all-important loop, fewer instructions in the initial test and uses
> fewer registers. If any cares, it's attached.

The last byte swap isn't correct:

        mov.b @r4,r1
        extu.b r0,r1
        mov.b @(r0,r1),r1
        mov.b r1,@r4

Should be "extu.b r1,r1" (as in the first byte swap).

  Magnus



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa