about summary refs log tree commit diff
path: root/sysdeps/libm-i387/s_log1pf.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_log1pf.S')
-rw-r--r--sysdeps/libm-i387/s_log1pf.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysdeps/libm-i387/s_log1pf.S b/sysdeps/libm-i387/s_log1pf.S
new file mode 100644
index 0000000000..e268550ae8
--- /dev/null
+++ b/sysdeps/libm-i387/s_log1pf.S
@@ -0,0 +1,23 @@
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Public domain.
+ */
+
+#include <machine/asm.h>
+
+RCSID("$NetBSD: s_log1pf.S,v 1.4 1995/05/09 00:13:05 jtc Exp $")
+
+/*
+ * Since the fyl2xp1 instruction has such a limited range:
+ *	-(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
+ * it's not worth trying to use it.  
+ */
+
+ENTRY(__log1pf)
+	fldln2
+	flds 4(%esp)
+	fld1
+	faddp
+	fyl2x
+	ret
+weak_alias (__log1pf, log1pf)