mirror of https://git.ffmpeg.org/ffmpeg.git
Remove reimplementation of av_log2
Originally committed as revision 9735 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ef0d7a0d4f
commit
d0da802049
|
@ -139,17 +139,9 @@ static int alac_set_info(ALACContext *alac)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* hideously inefficient. could use a bitmask search,
|
static inline int count_leading_zeros(int32_t input)
|
||||||
* alternatively bsr on x86,
|
|
||||||
*/
|
|
||||||
static int count_leading_zeros(int32_t input)
|
|
||||||
{
|
{
|
||||||
int i = 0;
|
return 31-av_log2(input);
|
||||||
while (!(0x80000000 & input) && i < 32) {
|
|
||||||
i++;
|
|
||||||
input = input << 1;
|
|
||||||
}
|
|
||||||
return i;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bastardized_rice_decompress(ALACContext *alac,
|
static void bastardized_rice_decompress(ALACContext *alac,
|
||||||
|
|
Loading…
Reference in New Issue