aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/s_significandl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu/s_significandl.c')
-rw-r--r--sysdeps/i386/fpu/s_significandl.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/sysdeps/i386/fpu/s_significandl.c b/sysdeps/i386/fpu/s_significandl.c
new file mode 100644
index 0000000..f31b77a
--- /dev/null
+++ b/sysdeps/i386/fpu/s_significandl.c
@@ -0,0 +1,19 @@
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Changes for long double by Ulrich Drepper <drepper@cygnus.com>
+ * Public domain.
+ */
+
+#include <math_private.h>
+
+long double
+__significandl (long double x)
+{
+ long double res;
+
+ asm ("fxtract\n"
+ "fstp %%st(0)" : "=t" (res) : "0" (x));
+ return res;
+}
+
+weak_alias (__significandl, significandl)