# HG changeset patch # User michael # Date 1117407022 0 # Node ID 53dbc3d8f94ea9148836c40c69430843a6ee7be8 # Parent b37add61897a93a56158adfa15509107cf413228 ilog() -> av_log2() diff -r b37add61897a -r 53dbc3d8f94e vorbis.c --- a/vorbis.c Sun May 29 22:11:05 2005 +0000 +++ b/vorbis.c Sun May 29 22:50:22 2005 +0000 @@ -52,14 +52,7 @@ } } -static unsigned int ilog(unsigned int i) { // unfortunatelly av_log2 uses different rounding - unsigned int ret=0; - while (i!=0) { - ++ret; - i>>=1; - } - return ret; -} +#define ilog(i) av_log2(2*(i)) static unsigned int nth_root(unsigned int x, unsigned int n) { // x^(1/n) unsigned int ret=0, i, j;