summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/mingwex/log2l.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/mingwex/log2l.c')
-rw-r--r--winsup/mingw/mingwex/log2l.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/log2l.c b/winsup/mingw/mingwex/log2l.c
new file mode 100644
index 000000000..c67d7701d
--- /dev/null
+++ b/winsup/mingw/mingwex/log2l.c
@@ -0,0 +1,8 @@
+#include <math.h>
+long double
+log2l (long double _x)
+{
+ long double retval;
+ __asm__ ("fyl2x;" : "=t" (retval) : "0" (_x), "u" (1.0L) : "st(1)");
+ return retval;
+}