mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avutil/libm: fix fminf() emulation build failure due to undefined FFMIN
Found-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
049b20b287
commit
e374e77292
@ -86,7 +86,9 @@ static av_always_inline float cbrtf(float x)
|
|||||||
#undef fminf
|
#undef fminf
|
||||||
static av_always_inline av_const float fminf(float x, float y)
|
static av_always_inline av_const float fminf(float x, float y)
|
||||||
{
|
{
|
||||||
return FFMIN(x, y);
|
//Note, the NaN special case is needed for C spec compliance, it should be
|
||||||
|
//optimized away if the users compiler is configured to assume no NaN
|
||||||
|
return x > y ? y : (x == x ? x : y);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user