1994-02-12 04:31:52 +03:00
|
|
|
/*
|
1995-04-29 02:43:31 +04:00
|
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
|
|
* Public domain.
|
1994-02-12 04:31:52 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <machine/asm.h>
|
|
|
|
|
1995-05-09 03:55:16 +04:00
|
|
|
RCSID("$NetBSD: s_log1p.S,v 1.7 1995/05/09 00:10:58 jtc Exp $")
|
1994-03-12 04:30:22 +03:00
|
|
|
|
1994-08-19 07:55:57 +04:00
|
|
|
/*
|
1994-08-26 04:20:34 +04:00
|
|
|
* Since the fyl2xp1 instruction has such a limited range:
|
1994-08-19 07:55:57 +04:00
|
|
|
* -(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
|
|
|
|
* it's not worth trying to use it.
|
|
|
|
*/
|
1994-08-26 04:20:34 +04:00
|
|
|
|
1994-02-12 04:31:52 +03:00
|
|
|
ENTRY(log1p)
|
|
|
|
fldln2
|
1994-08-19 00:42:35 +04:00
|
|
|
fldl 4(%esp)
|
1994-08-19 07:55:57 +04:00
|
|
|
fld1
|
|
|
|
faddp
|
|
|
|
fyl2x
|
1994-02-12 04:31:52 +03:00
|
|
|
ret
|