Commit c12e4048 authored by mru's avatar mru

Add casts to correct return type in macros for missing libm funcs

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21922 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2bd6ed1a
...@@ -221,12 +221,12 @@ static inline av_const unsigned int ff_sqrt(unsigned int a) ...@@ -221,12 +221,12 @@ static inline av_const unsigned int ff_sqrt(unsigned int a)
#if !HAVE_EXP2F #if !HAVE_EXP2F
#undef exp2f #undef exp2f
#define exp2f(x) exp2(x) #define exp2f(x) ((float)exp2(x))
#endif /* HAVE_EXP2F */ #endif /* HAVE_EXP2F */
#if !HAVE_LLRINT #if !HAVE_LLRINT
#undef llrint #undef llrint
#define llrint(x) rint(x) #define llrint(x) ((long long)rint(x))
#endif /* HAVE_LLRINT */ #endif /* HAVE_LLRINT */
#if !HAVE_LOG2 #if !HAVE_LOG2
...@@ -236,7 +236,7 @@ static inline av_const unsigned int ff_sqrt(unsigned int a) ...@@ -236,7 +236,7 @@ static inline av_const unsigned int ff_sqrt(unsigned int a)
#if !HAVE_LOG2F #if !HAVE_LOG2F
#undef log2f #undef log2f
#define log2f(x) log2(x) #define log2f(x) ((float)log2(x))
#endif /* HAVE_LOG2F */ #endif /* HAVE_LOG2F */
#if !HAVE_LRINT #if !HAVE_LRINT
......
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