summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/math-emu/fqtos.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/math-emu/fqtos.c')
-rw-r--r--arch/sparc64/math-emu/fqtos.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sparc64/math-emu/fqtos.c b/arch/sparc64/math-emu/fqtos.c
new file mode 100644
index 000000000..833f10618
--- /dev/null
+++ b/arch/sparc64/math-emu/fqtos.c
@@ -0,0 +1,13 @@
+#include "soft-fp.h"
+#include "quad.h"
+#include "single.h"
+
+int FQTOS(void *rd, void *rs2)
+{
+ FP_DECL_Q(A); FP_DECL_S(R);
+
+ __FP_UNPACK_Q(A, rs2);
+ FP_CONV(S,Q,1,2,R,A);
+ __FP_PACK_S(rd, R);
+ return 1;
+}