Commit 4a7f8e14 authored by vitor's avatar vitor

Remove reimplementation of av_log2

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9735 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 438bf0db
......@@ -139,17 +139,9 @@ static int alac_set_info(ALACContext *alac)
return 0;
}
/* hideously inefficient. could use a bitmask search,
* alternatively bsr on x86,
*/
static int count_leading_zeros(int32_t input)
static inline int count_leading_zeros(int32_t input)
{
int i = 0;
while (!(0x80000000 & input) && i < 32) {
i++;
input = input << 1;
}
return i;
return 31-av_log2(input);
}
static void bastardized_rice_decompress(ALACContext *alac,
......
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