s_log1pf.S revision 1.2
1/*	$OpenBSD: s_log1pf.S,v 1.2 2005/08/02 11:17:31 espie Exp $ */
2/*
3 * Written by J.T. Conklin <jtc@netbsd.org>.
4 * Public domain.
5 */
6
7#include <machine/asm.h>
8
9/*
10 * Since the fyl2xp1 instruction has such a limited range:
11 *	-(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
12 * it's not worth trying to use it.
13 */
14
15ENTRY(log1pf)
16	fldln2
17	flds 4(%esp)
18	fld1
19	faddp
20	fyl2x
21	ret
22