From 1a32536737ce600af24dd325e6bb4f61c2463cf3 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Tue, 15 Jul 2008 23:01:15 +0000 Subject: [PATCH] unroll another common case in vorbis_residue_decode Originally committed as revision 14250 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vorbis_dec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavcodec/vorbis_dec.c b/libavcodec/vorbis_dec.c index d4a5402d86..2143db76e5 100644 --- a/libavcodec/vorbis_dec.c +++ b/libavcodec/vorbis_dec.c @@ -1330,6 +1330,14 @@ static int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, uint_fa vec[voffs+k ]+=codebook.codevectors[coffs ]; // FPMATH vec[voffs+k+vlen]+=codebook.codevectors[coffs+1]; // FPMATH } + } else if(dim==4) { + for(k=0;k