2 * Written by J.T. Conklin <jtc@NetBSD.org>.
6 #include <machine/asm.h>
10 RCSID("$NetBSD: s_ceil.S,v 1.6 2002/03/26 15:17:37 fvdl 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 */