Commit 07876e25 authored by Måns Rullgård's avatar Måns Rullgård

Workaround for missing llrintf()

Originally committed as revision 22954 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent aebfb457
...@@ -1052,6 +1052,7 @@ HAVE_LIST=" ...@@ -1052,6 +1052,7 @@ HAVE_LIST="
libdc1394_1 libdc1394_1
libdc1394_2 libdc1394_2
llrint llrint
llrintf
local_aligned_16 local_aligned_16
local_aligned_8 local_aligned_8
log2 log2
...@@ -2585,6 +2586,7 @@ check_lib va/va.h vaInitialize -lva ...@@ -2585,6 +2586,7 @@ check_lib va/va.h vaInitialize -lva
check_mathfunc exp2 check_mathfunc exp2
check_mathfunc exp2f check_mathfunc exp2f
check_mathfunc llrint check_mathfunc llrint
check_mathfunc llrintf
check_mathfunc log2 check_mathfunc log2
check_mathfunc log2f check_mathfunc log2f
check_mathfunc lrint check_mathfunc lrint
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
*/ */
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/libm.h"
#include "avcodec.h" #include "avcodec.h"
#include "audioconvert.h" #include "audioconvert.h"
......
...@@ -43,6 +43,11 @@ ...@@ -43,6 +43,11 @@
#define llrint(x) ((long long)rint(x)) #define llrint(x) ((long long)rint(x))
#endif /* HAVE_LLRINT */ #endif /* HAVE_LLRINT */
#if !HAVE_LLRINTF
#undef llrintf
#define llrintf(x) ((long long)rint(x))
#endif /* HAVE_LLRINT */
#if !HAVE_LOG2 #if !HAVE_LOG2
#undef log2 #undef log2
#define log2(x) (log(x) * 1.44269504088896340736) #define log2(x) (log(x) * 1.44269504088896340736)
......
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