Commit e19ca845 authored by Michael Niedermayer's avatar Michael Niedermayer

ilog() -> av_log2()

Originally committed as revision 4318 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 13c2469d
...@@ -52,14 +52,7 @@ unsigned int get_bits_long_le(GetBitContext *s, int n){ ...@@ -52,14 +52,7 @@ unsigned int get_bits_long_le(GetBitContext *s, int n){
} }
} }
static unsigned int ilog(unsigned int i) { // unfortunatelly av_log2 uses different rounding #define ilog(i) av_log2(2*(i))
unsigned int ret=0;
while (i!=0) {
++ret;
i>>=1;
}
return ret;
}
static unsigned int nth_root(unsigned int x, unsigned int n) { // x^(1/n) static unsigned int nth_root(unsigned int x, unsigned int n) { // x^(1/n)
unsigned int ret=0, i, j; unsigned int ret=0, i, j;
......
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