2 * Written by J.T. Conklin <jtc@NetBSD.org>.
6 #include <machine/asm.h>
10 RCSID("$NetBSD: s_ceil.S,v 1.8 2011/06/18 21:24:51 joerg 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 */