Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/mingwex/fminl.c')
-rw-r--r--winsup/mingw/mingwex/fminl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/fminl.c b/winsup/mingw/mingwex/fminl.c
new file mode 100644
index 000000000..d8a3fea2c
--- /dev/null
+++ b/winsup/mingw/mingwex/fminl.c
@@ -0,0 +1,7 @@
+#include <math.h>
+
+long double
+fminl (long double _x, long double _y)
+{
+ return ((islessequal(_x, _y) || __isnanl (_y)) ? _x : _y );
+}