diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-08-21 23:17:25 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-08-21 23:17:25 +0000 |
commit | 451e2c077a1fb0ea7bbc77b53329d83da98e3986 (patch) | |
tree | a1517ffd8d7567b25a407cd2f31e96b9e4bff5d0 /apps/talk.c | |
parent | 0ad617cbf0cc85dde241345194b76b590df567a8 (diff) | |
download | rockbox-451e2c077a1fb0ea7bbc77b53329d83da98e3986.tar.gz rockbox-451e2c077a1fb0ea7bbc77b53329d83da98e3986.zip |
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
Diffstat (limited to 'apps/talk.c')
-rw-r--r-- | apps/talk.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/talk.c b/apps/talk.c index a1a33bb7c8..3e6bdb934a 100644 --- a/apps/talk.c +++ b/apps/talk.c | |||
@@ -214,15 +214,10 @@ static void load_voicefile(void) | |||
214 | 214 | ||
215 | for (i = 0; i < length; i++) | 215 | for (i = 0; i < length; i++) |
216 | { | 216 | { |
217 | temp = buf[i]; | 217 | temp = buf[i]; |
218 | buf[i] = ((temp >> 7) & 0x01) | 218 | temp = ((temp >> 4) & 0x0f) | ((temp & 0x0f) << 4); |
219 | | ((temp >> 5) & 0x02) | 219 | temp = ((temp >> 2) & 0x33) | ((temp & 0x33) << 2); |
220 | | ((temp >> 3) & 0x04) | 220 | buf[i] = ((temp >> 1) & 0x55) | ((temp & 0x55) << 1); |
221 | | ((temp >> 1) & 0x08) | ||
222 | | ((temp << 1) & 0x10) | ||
223 | | ((temp << 3) & 0x20) | ||
224 | | ((temp << 5) & 0x40) | ||
225 | | ((temp << 7) & 0x80); | ||
226 | } | 221 | } |
227 | cpu_boost(false); | 222 | cpu_boost(false); |
228 | 223 | ||