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>
15 fstcw 4(%esp) /* store fpu control word */
17 /* We use here %edx although only the low 1 bits are defined.
18 But none of the operations should care and they are faster
19 than the 16 bit operations. */
20 movl $0x400,%edx /* round towards -oo */
24 fldcw (%esp) /* load modified control word */
28 fldcw 4(%esp) /* restore original control word */
33 weak_alias (__floorl, floorl)