summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/mingwex/math/fmin.c
blob: 96a6ed11114f0b75305eed51a3a308a2dfd11191 (plain)
1
2
3
4
5
6
7
#include <math.h>

double
fmin (double _x, double _y)
{
  return ((islessequal(_x, _y) || __isnan (_y)) ? _x : _y );
}