diff options
Diffstat (limited to 'winsup/mingw/mingwex/fmin.c')
-rw-r--r-- | winsup/mingw/mingwex/fmin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/fmin.c b/winsup/mingw/mingwex/fmin.c new file mode 100644 index 000000000..96a6ed111 --- /dev/null +++ b/winsup/mingw/mingwex/fmin.c @@ -0,0 +1,7 @@ +#include <math.h> + +double +fmin (double _x, double _y) +{ + return ((islessequal(_x, _y) || __isnan (_y)) ? _x : _y ); +} |