]> git.sesse.net Git - ffmpeg/commitdiff
Remove fminf() emulation.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 8 Nov 2014 09:48:37 +0000 (10:48 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 8 Nov 2014 10:31:11 +0000 (11:31 +0100)
The emulation is unused and causes compilation trouble on systems
where fminf() is defined in <math.h> but missing from libm.
This should fix compilation on Debian powerpcspe.

configure
libavutil/libm.h

index 314e7fff036ae9b4aa4e9cf53f76a05a49b70843..978ef1203e3f9619338e03825ce16eb2254e2969 100755 (executable)
--- a/configure
+++ b/configure
@@ -1678,7 +1678,6 @@ MATH_FUNCS="
     exp2
     exp2f
     expf
-    fminf
     isinf
     isnan
     ldexpf
@@ -4813,7 +4812,6 @@ disabled crystalhd || check_lib libcrystalhd/libcrystalhd_if.h DtsCrystalHDVersi
 atan2f_args=2
 ldexpf_args=2
 powf_args=2
-fminf_args=2
 
 for func in $MATH_FUNCS; do
     eval check_mathfunc $func \${${func}_args:-1}
index 28d5df871b39a1a8f99bc9540d7f9a8ccd840d59..6c17b287b450a7e2e676d0eb1b708be67dd04f83 100644 (file)
@@ -82,16 +82,6 @@ static av_always_inline float cbrtf(float x)
 #define exp2f(x) ((float)exp2(x))
 #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
 static av_always_inline av_const int isinf(float x)
 {