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>
|
|
|
|
|
2001-06-19 04:26:29 +04:00
|
|
|
#include "abi.h"
|
|
|
|
|
|
|
|
RCSID("$NetBSD: s_log1pf.S,v 1.6 2001/06/19 00:26:30 fvdl 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)
|
2001-06-19 04:26:29 +04:00
|
|
|
XMM_ONE_ARG_FLOAT_PROLOGUE
|
1994-08-19 07:56:44 +04:00
|
|
|
fldln2
|
2001-06-19 04:26:29 +04:00
|
|
|
flds ARG_FLOAT_ONE
|
1994-08-19 07:56:44 +04:00
|
|
|
fld1
|
|
|
|
faddp
|
|
|
|
fyl2x
|
2001-06-19 04:26:29 +04:00
|
|
|
XMM_FLOAT_EPILOGUE
|
1994-08-19 07:56:44 +04:00
|
|
|
ret
|