Revision 291fd18a

View differences:

configure
911 911
    libdc1394_1
912 912
    libdc1394_2
913 913
    llrint
914
    log2
914 915
    loongson
915 916
    lrint
916 917
    lrintf
......
2078 2079
check_lib va/va.h vaInitialize -lva
2079 2080

  
2080 2081
# test for C99 functions in math.h
2081
for func in llrint lrint lrintf round roundf truncf; do
2082
for func in llrint log2 lrint lrintf round roundf truncf; do
2082 2083
    check_exec <<EOF && enable $func || disable $func
2083 2084
#include <math.h>
2084 2085
int main(void) { return ($func(3.999f) > 0)?0:1; }
libavutil/internal.h
265 265
}
266 266
#endif /* HAVE_LLRINT */
267 267

  
268
#if !HAVE_LOG2
269
static av_always_inline av_const double log2(double x)
270
{
271
    return log(x) * 1.44269504088896340736;
272
}
273
#endif /* HAVE_LOG2 */
274

  
268 275
#if !HAVE_LRINT
269 276
static av_always_inline av_const long int lrint(double x)
270 277
{

Also available in: Unified diff