summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-05-28 16:11:07 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-05-28 16:11:07 +0000
commit4886f19810f809389f049ea060bbbe2238a48c99 (patch)
treed79916e4e1bc6167edf75763a09fbe1614770c42
parentf76cee794388f07a99f9f536bf9fd935ec2f5dd4 (diff)
Optimized the bitswap function a little
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@770 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/mpeg.c4
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]];
}