Commit b0ed88b4 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Remove fminf() emulation.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 9ebfe38f 4436a8f4
...@@ -1678,7 +1678,6 @@ MATH_FUNCS=" ...@@ -1678,7 +1678,6 @@ MATH_FUNCS="
exp2 exp2
exp2f exp2f
expf expf
fminf
isinf isinf
isnan isnan
ldexpf ldexpf
...@@ -4813,7 +4812,6 @@ disabled crystalhd || check_lib libcrystalhd/libcrystalhd_if.h DtsCrystalHDVersi ...@@ -4813,7 +4812,6 @@ 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,16 +82,6 @@ static av_always_inline float cbrtf(float x) ...@@ -82,16 +82,6 @@ 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
static av_always_inline av_const float fminf(float x, float 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
#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)
{ {
......
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