[FFmpeg-cvslog] build: add fminf() emulation

Michael Niedermayer git at videolan.org
Fri Jun 6 15:04:22 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun  6 14:54:57 2014 +0200| [97508af274f89907bdacafb5ef10e839bb7d6bc4] | committer: Michael Niedermayer

build: add fminf() emulation

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97508af274f89907bdacafb5ef10e839bb7d6bc4
---

 configure        |    2 ++
 libavutil/libm.h |    5 +++++
 2 files changed, 7 insertions(+)

diff --git a/configure b/configure
index c504c85..f15de0b 100755
--- a/configure
+++ b/configure
@@ -1645,6 +1645,7 @@ MATH_FUNCS="
     exp2
     exp2f
     expf
+    fminf
     isinf
     isnan
     ldexpf
@@ -4635,6 +4636,7 @@ 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}
diff --git a/libavutil/libm.h b/libavutil/libm.h
index 6c17b28..9e0a64b 100644
--- a/libavutil/libm.h
+++ b/libavutil/libm.h
@@ -82,6 +82,11 @@ static av_always_inline float cbrtf(float x)
 #define exp2f(x) ((float)exp2(x))
 #endif /* HAVE_EXP2F */
 
+#if !HAVE_FMINF
+#undef fminf
+#define fminf(x, y) ((float)fminf(x,y))
+#endif
+
 #if !HAVE_ISINF
 static av_always_inline av_const int isinf(float x)
 {



More information about the ffmpeg-cvslog mailing list