1994-08-19 07:56:44 +04:00
|
|
|
/*
|
1995-04-29 02:43:31 +04:00
|
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
|
|
* Public domain.
|
1994-08-19 07:56:44 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <machine/asm.h>
|
|
|
|
|
1999-07-02 19:37:33 +04:00
|
|
|
RCSID("$NetBSD: s_log1pf.S,v 1.5 1999/07/02 15:37:34 simonb Exp $")
|
1994-08-19 07:56:44 +04:00
|
|
|
|
|
|
|
/*
|
1994-08-26 04:20:34 +04:00
|
|
|
* Since the fyl2xp1 instruction has such a limited range:
|
1994-08-19 07:56:44 +04:00
|
|
|
* -(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
|
1999-07-02 19:37:33 +04:00
|
|
|
* it's not worth trying to use it.
|
1994-08-19 07:56:44 +04:00
|
|
|
*/
|
1994-08-26 04:20:34 +04:00
|
|
|
|
1994-08-19 07:56:44 +04:00
|
|
|
ENTRY(log1pf)
|
|
|
|
fldln2
|
|
|
|
flds 4(%esp)
|
|
|
|
fld1
|
|
|
|
faddp
|
|
|
|
fyl2x
|
|
|
|
ret
|