# HG changeset patch # User ods15 # Date 1159769250 0 # Node ID d3bc8c09597c452d83a88812e0059c7a99d5c676 # Parent a778f86c28e2702615d8b5021fd7da039eb7c7f2 Original Commit: r50 | ods15 | 2006-09-23 16:24:51 +0300 (Sat, 23 Sep 2006) | 2 lines ilog => av_log2 diff -r a778f86c28e2 -r d3bc8c09597c vorbis_enc.c --- a/vorbis_enc.c Mon Oct 02 06:07:28 2006 +0000 +++ b/vorbis_enc.c Mon Oct 02 06:07:30 2006 +0000 @@ -127,6 +127,8 @@ uint8_t * buf_ptr; } PutBitContext; +#define ilog(i) av_log2(2*(i)) + static inline void init_put_bits(PutBitContext * pb, uint8_t * buf, int buffer_len) { pb->total = buffer_len * 8; pb->total_pos = 0; @@ -359,12 +361,6 @@ ff_mdct_init(&venc->mdct[1], venc->blocksize[1], 0); } -static inline int ilog(unsigned int a) { - int i; - for (i = 0; a >> i; i++); - return i; -} - static void put_float(PutBitContext * pb, float f) { int exp, mant; uint32_t res = 0;