mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 22:10:34 +00:00
Add casts to correct return type in macros for missing libm funcs
Originally committed as revision 21922 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
da2a5feaea
commit
7ed63ca2e7
@ -221,12 +221,12 @@ static inline av_const unsigned int ff_sqrt(unsigned int a)
|
||||
|
||||
#if !HAVE_EXP2F
|
||||
#undef exp2f
|
||||
#define exp2f(x) exp2(x)
|
||||
#define exp2f(x) ((float)exp2(x))
|
||||
#endif /* HAVE_EXP2F */
|
||||
|
||||
#if !HAVE_LLRINT
|
||||
#undef llrint
|
||||
#define llrint(x) rint(x)
|
||||
#define llrint(x) ((long long)rint(x))
|
||||
#endif /* HAVE_LLRINT */
|
||||
|
||||
#if !HAVE_LOG2
|
||||
@ -236,7 +236,7 @@ static inline av_const unsigned int ff_sqrt(unsigned int a)
|
||||
|
||||
#if !HAVE_LOG2F
|
||||
#undef log2f
|
||||
#define log2f(x) log2(x)
|
||||
#define log2f(x) ((float)log2(x))
|
||||
#endif /* HAVE_LOG2F */
|
||||
|
||||
#if !HAVE_LRINT
|
||||
|
Loading…
Reference in New Issue
Block a user