2 * Written by J.T. Conklin <jtc@netbsd.org>.
3 * Changes for long double by Ulrich Drepper <drepper@cygnus.com>
7 #include <machine/asm.h>
16 fstcw -4(%ebp) /* store fpu control word */
18 /* We use here %edx although only the low 1 bits are defined.
19 But none of the operations should care and they are faster
20 than the 16 bit operations. */
22 orl $0x0800,%edx /* round towards +oo */
25 fldcw -8(%ebp) /* load modfied control word */
27 fldt 8(%ebp); /* round */
30 fldcw -4(%ebp) /* restore original control word */
35 weak_alias (__ceill, ceill)