#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)
{