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