summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/math-emu/fdivs.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
commit27cfca1ec98e91261b1a5355d10a8996464b63af (patch)
tree8e895a53e372fa682b4c0a585b9377d67ed70d0e /arch/sparc64/math-emu/fdivs.c
parent6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff)
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'arch/sparc64/math-emu/fdivs.c')
-rw-r--r--arch/sparc64/math-emu/fdivs.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sparc64/math-emu/fdivs.c b/arch/sparc64/math-emu/fdivs.c
new file mode 100644
index 000000000..704f218c9
--- /dev/null
+++ b/arch/sparc64/math-emu/fdivs.c
@@ -0,0 +1,13 @@
+#include "soft-fp.h"
+#include "single.h"
+
+int FDIVS(void *rd, void *rs2, void *rs1)
+{
+ FP_DECL_S(A); FP_DECL_S(B); FP_DECL_S(R);
+
+ __FP_UNPACK_S(A, rs1);
+ __FP_UNPACK_S(B, rs2);
+ FP_DIV_S(R, A, B);
+ __FP_PACK_S(rd, R);
+ return 1;
+}