mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
another div -> fastdiv, another 2% faster vorbis.
Originally committed as revision 5902 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c198597864
commit
32e8763103
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user