forked from len0rd/rockbox
Iriver: somewhat more efficient bitswap for voice files. No assembler this time since this is a temporary solution anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7381 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0ad617cbf0
commit
451e2c077a
1 changed files with 4 additions and 9 deletions
13
apps/talk.c
13
apps/talk.c
|
|
@ -214,15 +214,10 @@ static void load_voicefile(void)
|
|||
|
||||
for (i = 0; i < length; i++)
|
||||
{
|
||||
temp = buf[i];
|
||||
buf[i] = ((temp >> 7) & 0x01)
|
||||
| ((temp >> 5) & 0x02)
|
||||
| ((temp >> 3) & 0x04)
|
||||
| ((temp >> 1) & 0x08)
|
||||
| ((temp << 1) & 0x10)
|
||||
| ((temp << 3) & 0x20)
|
||||
| ((temp << 5) & 0x40)
|
||||
| ((temp << 7) & 0x80);
|
||||
temp = buf[i];
|
||||
temp = ((temp >> 4) & 0x0f) | ((temp & 0x0f) << 4);
|
||||
temp = ((temp >> 2) & 0x33) | ((temp & 0x33) << 2);
|
||||
buf[i] = ((temp >> 1) & 0x55) | ((temp & 0x55) << 1);
|
||||
}
|
||||
cpu_boost(false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue