[FFmpeg-devel] [PATCH] configure, avutil/libm: add fmax, fmaxf, fmin, fminf support

Derek Buitenhuis derek.buitenhuis at gmail.com
Thu Oct 15 16:04:27 CEST 2015


On 10/15/2015 1:18 PM, Ganesh Ajjanagadde wrote:
> It has been demonstrated that using libc provided floating point
> functions is beneficial, in the context of fabs() vs FFABS.
> 
> Unfortunately, MSVC 2012 (and earlier) lack the ISO C99 fmax, fmaxf,
> fmin, fminf functions. This patch adds them, thus making their usage in
> FFmpeg safe.

We previously had at least fmin emulation in libm.h, but it 
caused problems on some systems and was removed.

Carl and Michael should remember.

- Derek


More information about the ffmpeg-devel mailing list