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