summaryrefslogtreecommitdiffstats
path: root/arch/sparc/math-emu/fqtod.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-05-07 02:55:41 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-05-07 02:55:41 +0000
commitdcec8a13bf565e47942a1751a9cec21bec5648fe (patch)
tree548b69625b18cc2e88c3e68d0923be546c9ebb03 /arch/sparc/math-emu/fqtod.c
parent2e0f55e79c49509b7ff70ff1a10e1e9e90a3dfd4 (diff)
o Merge with Linux 2.1.99.
o Fix ancient bug in the ELF loader making ldd crash. o Fix ancient bug in the keyboard code for SGI, SNI and Jazz.
Diffstat (limited to 'arch/sparc/math-emu/fqtod.c')
-rw-r--r--arch/sparc/math-emu/fqtod.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sparc/math-emu/fqtod.c b/arch/sparc/math-emu/fqtod.c
new file mode 100644
index 000000000..dc5b6f9aa
--- /dev/null
+++ b/arch/sparc/math-emu/fqtod.c
@@ -0,0 +1,13 @@
+#include "soft-fp.h"
+#include "quad.h"
+#include "double.h"
+
+int FQTOD(void *rd, void *rs2)
+{
+ FP_DECL_Q(A); FP_DECL_D(R);
+
+ __FP_UNPACK_Q(A, rs2);
+ FP_CONV(D,Q,2,4,R,A);
+ __FP_PACK_D(rd, R);
+ return 1;
+}