diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-06 14:54:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-06 14:54:57 +0200 |
commit | 97508af274f89907bdacafb5ef10e839bb7d6bc4 (patch) | |
tree | c82b7f8f5f197f018656a5464fb0c54a0f1f2376 /libavutil/libm.h | |
parent | a80342fe5633303a72d357c0bd9419bf3962dfdb (diff) | |
download | ffmpeg-97508af274f89907bdacafb5ef10e839bb7d6bc4.tar.gz |
build: add fminf() emulation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/libm.h')
-rw-r--r-- | libavutil/libm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/libm.h b/libavutil/libm.h index 6c17b287b4..9e0a64b4e5 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) { |