Home | History | Annotate | Line # | Download | only in i387
      1  1.1     jtc /*
      2  1.7    salo  * 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.6    fvdl #include "abi.h"
      9  1.6    fvdl 
     10  1.7    salo RCSID("$NetBSD: e_asin.S,v 1.7 2003/07/26 19:24:58 salo Exp $")
     11  1.2     jtc 
     12  1.1     jtc /* asin = atan (x / sqrt(1 - x^2)) */
     13  1.1     jtc ENTRY(__ieee754_asin)
     14  1.6    fvdl 	XMM_ONE_ARG_DOUBLE_PROLOGUE
     15  1.6    fvdl 	fldl	ARG_DOUBLE_ONE		/* x */
     16  1.5  kleink 	fld	%st(0)
     17  1.1     jtc 	fmul	%st(0)			/* x^2 */
     18  1.1     jtc 	fld1
     19  1.1     jtc 	fsubp				/* 1 - x^2 */
     20  1.1     jtc 	fsqrt				/* sqrt (1 - x^2) */
     21  1.1     jtc 	fpatan
     22  1.6    fvdl 	XMM_DOUBLE_EPILOGUE
     23  1.1     jtc 	ret
     24