diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-05-28 16:11:07 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-05-28 16:11:07 +0000 |
commit | 4886f19810f809389f049ea060bbbe2238a48c99 (patch) | |
tree | d79916e4e1bc6167edf75763a09fbe1614770c42 /firmware/mpeg.c | |
parent | f76cee794388f07a99f9f536bf9fd935ec2f5dd4 (diff) |
Optimized the bitswap function a little
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@770 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r-- | firmware/mpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 52525cf4d1..cb19ebddf9 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -204,8 +204,8 @@ static void dma_tick(void) static void bitswap(unsigned char *data, int length) { - int i; - for(i = 0;i < length;i++) + int i = length; + while(i--) { data[i] = fliptable[data[i]]; } |