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