[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vorbis.c,1.5,1.6
Michael Niedermayer
michaelni
Mon May 30 02:37:29 CEST 2005
Hi
On Monday 30 May 2005 02:08, Rich Felker wrote:
> On Mon, May 30, 2005 at 12:50:24AM +0200, Michael Niedermayer CVS wrote:
> > Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
> > In directory mail:/var2/tmp/cvs-serv31774
> >
> > Modified Files:
> > vorbis.c
> > Log Message:
> > ilog() -> av_log2()
> >
> > +#define ilog(i) av_log2(2*(i))
>
> Wouldn't 1+av_log2((i)) be faster? Or is there some rounding issue I'm
> missing?
av_log2(0) == 0, allthough i dunno if 0 is ever feeded into it ...
anyway 2*x is just x+x so it probably isnt really slower then x+1
[...]
--
Michael
More information about the ffmpeg-cvslog
mailing list