mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 20:37:04 +00:00
build: add fminf() emulation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a80342fe56
commit
97508af274
2
configure
vendored
2
configure
vendored
@ -1645,6 +1645,7 @@ MATH_FUNCS="
|
|||||||
exp2
|
exp2
|
||||||
exp2f
|
exp2f
|
||||||
expf
|
expf
|
||||||
|
fminf
|
||||||
isinf
|
isinf
|
||||||
isnan
|
isnan
|
||||||
ldexpf
|
ldexpf
|
||||||
@ -4635,6 +4636,7 @@ disabled crystalhd || check_lib libcrystalhd/libcrystalhd_if.h DtsCrystalHDVersi
|
|||||||
atan2f_args=2
|
atan2f_args=2
|
||||||
ldexpf_args=2
|
ldexpf_args=2
|
||||||
powf_args=2
|
powf_args=2
|
||||||
|
fminf_args=2
|
||||||
|
|
||||||
for func in $MATH_FUNCS; do
|
for func in $MATH_FUNCS; do
|
||||||
eval check_mathfunc $func \${${func}_args:-1}
|
eval check_mathfunc $func \${${func}_args:-1}
|
||||||
|
@ -82,6 +82,11 @@ static av_always_inline float cbrtf(float x)
|
|||||||
#define exp2f(x) ((float)exp2(x))
|
#define exp2f(x) ((float)exp2(x))
|
||||||
#endif /* HAVE_EXP2F */
|
#endif /* HAVE_EXP2F */
|
||||||
|
|
||||||
|
#if !HAVE_FMINF
|
||||||
|
#undef fminf
|
||||||
|
#define fminf(x, y) ((float)fminf(x,y))
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !HAVE_ISINF
|
#if !HAVE_ISINF
|
||||||
static av_always_inline av_const int isinf(float x)
|
static av_always_inline av_const int isinf(float x)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user