2 * Written by J.T. Conklin <jtc@NetBSD.org>.
6 #include <machine/asm.h>
8 RCSID("$NetBSD: s_floor.S,v 1.8 2003/07/26 19:25:02 salo Exp $")
16 fstcw -4(%ebp) /* store fpu control word */
18 orw $0x0400,%dx /* round towards -oo */
21 fldcw -8(%ebp) /* load modfied control word */
23 fldl 8(%ebp); /* round */
26 fldcw -4(%ebp) /* restore original control word */