dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: More efficient bitswap.s

Re: More efficient bitswap.s

From: Magnus Holmgren <>
Date: Thu, 24 Oct 2002 14:21:51 +0200 (MEST)

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 _at_r4,r1
        extu.b r0,r1
        mov.b _at_(r0,r1),r1
        mov.b r1,_at_r4

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

Received on 2002-10-24

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy