Home | History | Annotate | Line # | Download | only in i387
e_fmod.S revision 1.7
      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.5  fvdl #include "abi.h"
      9  1.5  fvdl 
     10  1.5  fvdl 
     11  1.7  salo RCSID("$NetBSD: e_fmod.S,v 1.7 2003/07/26 19:24:58 salo Exp $")
     12  1.2   jtc 
     13  1.1   jtc ENTRY(__ieee754_fmod)
     14  1.5  fvdl 	XMM_TWO_ARG_DOUBLE_PROLOGUE
     15  1.5  fvdl 	fldl	ARG_DOUBLE_TWO
     16  1.5  fvdl 	fldl	ARG_DOUBLE_ONE
     17  1.1   jtc 1:	fprem
     18  1.1   jtc 	fstsw	%ax
     19  1.6  fvdl 	btw	$10,%ax
     20  1.5  fvdl 	jc	1b
     21  1.5  fvdl 	fstp	%st(1)
     22  1.5  fvdl 	XMM_DOUBLE_EPILOGUE
     23  1.1   jtc 	ret
     24