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 $")
14 fstcw 4(%esp) /* store fpu control word */
16 /* We use here %edx although only the low 1 bits are defined.
17 But none of the operations should care and they are faster
18 than the 16 bit operations. */
19 movl $0x0800,%edx /* round towards +oo */
23 fldcw (%esp) /* load modified control word */
27 fldcw 4(%esp) /* restore original control word */
30 popl %ecx; nacljmp %ecx
32 weak_alias (__ceil, ceil)