2 * Based on code written by J.T. Conklin <jtc@NetBSD.org>.
5 * $FreeBSD: head/lib/msun/i387/s_truncl.S 217108 2011-01-07 16:13:12Z kib $
8 #include <machine/asm.h>
15 fstcw -4(%ebp) /* store fpu control word */
17 orw $0x0c00,%dx /* round towards -oo */
19 fldcw -8(%ebp) /* load modfied control word */
21 fldt 8(%ebp) /* round */
24 fldcw -4(%ebp) /* restore original control word */
30 .section .note.GNU-stack,"",%progbits