summaryrefslogtreecommitdiff
path: root/lib/libm/arch/mc68881/e_remainder.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/arch/mc68881/e_remainder.S')
-rw-r--r--lib/libm/arch/mc68881/e_remainder.S16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/libm/arch/mc68881/e_remainder.S b/lib/libm/arch/mc68881/e_remainder.S
new file mode 100644
index 00000000000..a68b35e5567
--- /dev/null
+++ b/lib/libm/arch/mc68881/e_remainder.S
@@ -0,0 +1,16 @@
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Public domain.
+ */
+
+#include <machine/asm.h>
+
+RCSID("$NetBSD: e_remainder.S,v 1.3 1995/05/11 23:19:52 jtc Exp $")
+
+ENTRY(__ieee754_remainder)
+ fmoved sp@(4),fp0
+ fremd sp@(12),fp0
+ fmoved fp0,sp@-
+ movel sp@+,d0
+ movel sp@+,d1
+ rts