about summary refs log tree commit diff
path: root/REORG.TODO/sysdeps/i386/fpu/e_atan2.S
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/sysdeps/i386/fpu/e_atan2.S')
-rw-r--r--REORG.TODO/sysdeps/i386/fpu/e_atan2.S30
1 files changed, 30 insertions, 0 deletions
diff --git a/REORG.TODO/sysdeps/i386/fpu/e_atan2.S b/REORG.TODO/sysdeps/i386/fpu/e_atan2.S
new file mode 100644
index 0000000000..25f43bb5a1
--- /dev/null
+++ b/REORG.TODO/sysdeps/i386/fpu/e_atan2.S
@@ -0,0 +1,30 @@
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Public domain.
+ */
+
+#include <machine/asm.h>
+#include <i386-math-asm.h>
+
+RCSID("$NetBSD: e_atan2.S,v 1.4 1995/05/08 23:46:28 jtc Exp $")
+
+DEFINE_DBL_MIN
+
+#ifdef PIC
+# define MO(op) op##@GOTOFF(%ecx)
+#else
+# define MO(op) op
+#endif
+
+	.text
+ENTRY(__ieee754_atan2)
+#ifdef  PIC
+	LOAD_PIC_REG (cx)
+#endif
+	fldl	 4(%esp)
+	fldl	12(%esp)
+	fpatan
+	DBL_CHECK_FORCE_UFLOW_NARROW
+	ret
+END (__ieee754_atan2)
+strong_alias (__ieee754_atan2, __atan2_finite)