5 #include <libm-alias-ldouble.h>
6 #include <machine/asm.h>
11 fnstenv -28(%rsp) /* store fpu environment */
13 /* We use here %edx although only the low 1 bits are defined.
14 But none of the operations should care and they are faster
15 than the 16 bit operations. */
16 movl $0x400,%edx /* round towards -oo */
20 fldcw -32(%rsp) /* load modified control word */
24 /* Preserve "invalid" exceptions from sNaN input. */
29 fldenv -28(%rsp) /* restore original environment */
33 libm_alias_ldouble (__floor, floor)