Commit 63ff3f5a authored by lorenm's avatar lorenm

another div -> fastdiv, another 2% faster vorbis.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5902 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5482aa13
...@@ -1379,7 +1379,9 @@ static int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, uint_fa ...@@ -1379,7 +1379,9 @@ static int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, uint_fa
if (vqbook>=0) { if (vqbook>=0) {
uint_fast16_t coffs; uint_fast16_t coffs;
uint_fast16_t step=vr->partition_size/vc->codebooks[vqbook].dimensions; uint_fast8_t dim= vc->codebooks[vqbook].dimensions;
uint_fast16_t step= dim==1 ? vr->partition_size
: FASTDIV(vr->partition_size, dim);
vorbis_codebook codebook= vc->codebooks[vqbook]; vorbis_codebook codebook= vc->codebooks[vqbook];
if (vr->type==0) { if (vr->type==0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment