2 * Written by J.T. Conklin <jtc@netbsd.org>.
6 #include <machine/asm.h>
8 RCSID("$NetBSD: s_ceil.S,v 1.4 1995/05/08 23:52:13 jtc Exp $")
15 fstcw -12(%ebp) /* store fpu control word */
17 orw $0x0800,%dx /* round towards +oo */
20 fldcw -16(%ebp) /* load modfied control word */
22 fldl 8(%ebp); /* round */
25 fldcw -12(%ebp) /* restore original control word */
29 weak_alias (__ceil, ceil)