1 /* 2 * Written by J.T. Conklin <jtc (at) NetBSD.org>. 3 * Public domain. 4 */ 5 6 #include <machine/asm.h> 7 8 #include "abi.h" 9 10 11 RCSID("$NetBSD: e_fmod.S,v 1.7 2003/07/26 19:24:58 salo Exp $") 12 13 ENTRY(__ieee754_fmod) 14 XMM_TWO_ARG_DOUBLE_PROLOGUE 15 fldl ARG_DOUBLE_TWO 16 fldl ARG_DOUBLE_ONE 17 1: fprem 18 fstsw %ax 19 btw $10,%ax 20 jc 1b 21 fstp %st(1) 22 XMM_DOUBLE_EPILOGUE 23 ret 24