From 4886f19810f809389f049ea060bbbe2238a48c99 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 28 May 2002 16:11:07 +0000 Subject: Optimized the bitswap function a little git-svn-id: svn://svn.rockbox.org/rockbox/trunk@770 a1c6a512-1295-4272-9138-f99709370657 --- firmware/mpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/mpeg.c') 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]]; } -- cgit v1.2.3