2 * Written by J.T. Conklin <jtc@NetBSD.org>.
6 #include <machine/asm.h>
11 RCSID("$NetBSD: s_ceil.S,v 1.6 2002/03/26 15:17:37 fvdl Exp $")
13 RCSID("$DragonFly: src/lib/msun/i387/Attic/s_ceil.S,v 1.3 2004/12/29 11:40:18 asmodai Exp $")
21 fstcw -4(%ebp) /* store fpu control word */
23 orw $0x0800,%dx /* round towards +oo */
26 fldcw -8(%ebp) /* load modfied control word */
28 fldl 8(%ebp); /* round */
31 fldcw -4(%ebp) /* restore original control word */