[Ffmpeg-cvslog] r5902 - trunk/libavcodec/vorbis.c
lorenm
subversion
Thu Aug 3 08:07:13 CEST 2006
Author: lorenm
Date: Thu Aug 3 08:07:13 2006
New Revision: 5902
Modified:
trunk/libavcodec/vorbis.c
Log:
another div -> fastdiv, another 2% faster vorbis.
Modified: trunk/libavcodec/vorbis.c
==============================================================================
--- trunk/libavcodec/vorbis.c (original)
+++ trunk/libavcodec/vorbis.c Thu Aug 3 08:07:13 2006
@@ -1379,7 +1379,9 @@
if (vqbook>=0) {
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];
if (vr->type==0) {
More information about the ffmpeg-cvslog
mailing list