summaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/s_tanf.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu/s_tanf.S')
-rw-r--r--sysdeps/i386/fpu/s_tanf.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/sysdeps/i386/fpu/s_tanf.S b/sysdeps/i386/fpu/s_tanf.S
new file mode 100644
index 0000000000..7a7509119b
--- /dev/null
+++ b/sysdeps/i386/fpu/s_tanf.S
@@ -0,0 +1,17 @@
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Public domain.
+ */
+
+#include <machine/asm.h>
+
+RCSID("$NetBSD: s_tanf.S,v 1.3 1995/05/09 00:31:09 jtc Exp $")
+
+/* A float's domain isn't large enough to require argument reduction. */
+ENTRY(__tanf)
+ flds 4(%esp)
+ fptan
+ fstp %st(0)
+ ret
+END (__tanf)
+weak_alias (__tanf, tanf)