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>
14 cfi_adjust_cfa_offset (32)
16 fnstenv 4(%esp) /* store fpu environment */
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. */
21 movl $0x400,%edx /* round towards -oo */
25 fldcw (%esp) /* load modified control word */
29 /* Preserve "invalid" exceptions from sNaN input. */
34 fldenv 4(%esp) /* restore original environment */
37 cfi_adjust_cfa_offset (-32)
40 weak_alias (__floorl, floorl)