Home | History | Annotate | Line # | Download | only in i387
s_log1pf.S revision 1.5
      1  1.1     jtc /*
      2  1.3     jtc  * Written by J.T. Conklin <jtc (at) netbsd.org>.
      3  1.3     jtc  * Public domain.
      4  1.1     jtc  */
      5  1.1     jtc 
      6  1.1     jtc #include <machine/asm.h>
      7  1.1     jtc 
      8  1.5  simonb RCSID("$NetBSD: s_log1pf.S,v 1.5 1999/07/02 15:37:34 simonb Exp $")
      9  1.1     jtc 
     10  1.1     jtc /*
     11  1.2     jtc  * Since the fyl2xp1 instruction has such a limited range:
     12  1.1     jtc  *	-(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
     13  1.5  simonb  * it's not worth trying to use it.
     14  1.1     jtc  */
     15  1.2     jtc 
     16  1.1     jtc ENTRY(log1pf)
     17  1.1     jtc 	fldln2
     18  1.1     jtc 	flds 4(%esp)
     19  1.1     jtc 	fld1
     20  1.1     jtc 	faddp
     21  1.1     jtc 	fyl2x
     22  1.1     jtc 	ret
     23