summary refs log tree commit diff
path: root/sysdeps/libm-i387/s_log1pf.S
blob: 7a161f26f95763efbb4664b560e952d20a8d9cd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * 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
PSEUDO_END (__log1pf)
weak_alias (__log1pf, log1pf)