Add a log2 replacement for systems that haven't quite caught up with the C99
standard library. Originally committed as revision 19395 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -265,6 +265,13 @@ static av_always_inline av_const long long llrint(double x)
|
||||
}
|
||||
#endif /* HAVE_LLRINT */
|
||||
|
||||
#if !HAVE_LOG2
|
||||
static av_always_inline av_const double log2(double x)
|
||||
{
|
||||
return log(x) * 1.44269504088896340736;
|
||||
}
|
||||
#endif /* HAVE_LOG2 */
|
||||
|
||||
#if !HAVE_LRINT
|
||||
static av_always_inline av_const long int lrint(double x)
|
||||
{
|
||||
|
Reference in New Issue
Block a user