NetBSD/lib/libm/arch/i387/s_log1pf.S

23 lines
374 B
ArmAsm
Raw Normal View History

/*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#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 $")
/*
* Since the fyl2xp1 instruction has such a limited range:
* -(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
1999-07-02 19:37:33 +04:00
* it's not worth trying to use it.
*/
ENTRY(log1pf)
fldln2
flds 4(%esp)
fld1
faddp
fyl2x
ret