From 41cea75095e6dcd17cff2f57c07553c0ec2a298e Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Wed, 28 Dec 2005 20:42:24 +0000 Subject: Vorbis optimizations from Brandon Low (part of patch 1387611). Reduces cpu boost ratio on a test track by about 6 percentage points. Also fixes broken simulator playback caused by my previous Tremor commit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8291 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/Tremor/ogg.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/codecs/Tremor/ogg.h') diff --git a/apps/codecs/Tremor/ogg.h b/apps/codecs/Tremor/ogg.h index 08d15788c0..e6c78da95e 100644 --- a/apps/codecs/Tremor/ogg.h +++ b/apps/codecs/Tremor/ogg.h @@ -184,12 +184,13 @@ static inline void oggpack_adv(oggpack_buffer *b,int bits){ bits+=b->headbit; b->headbit=bits&7; b->headptr+=bits/8; - if((b->headend-=bits/8)<1)_span(b); + if((b->headend-=((unsigned)bits)/8)<1)_span(b); } static inline long oggpack_look(oggpack_buffer *b, int bits){ if(bits+b->headbit < b->headend<<3){ - unsigned long m=(1<headbit; -- cgit v1.2.3