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/math/fabsf.c')
-rw-r--r--winsup/mingw/mingwex/math/fabsf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/math/fabsf.c b/winsup/mingw/mingwex/math/fabsf.c
new file mode 100644
index 000000000..6580f955c
--- /dev/null
+++ b/winsup/mingw/mingwex/math/fabsf.c
@@ -0,0 +1,9 @@
+#include <math.h>
+
+float
+fabsf (float x)
+{
+ float res;
+ asm ("fabs;" : "=t" (res) : "0" (x));
+ return res;
+}