2
* Based on code written by J.T. Conklin <jtc@NetBSD.org>.
6
#include <machine/asm.h>
7
__FBSDID("$FreeBSD: src/lib/msun/i387/s_truncf.S,v 1.2 2005/05/06 15:44:20 deischen Exp $")
14
fstcw -4(%ebp) /* store fpu control word */
16
orw $0x0c00,%dx /* round towards -oo */
18
fldcw -8(%ebp) /* load modfied control word */
20
flds 8(%ebp) /* round */
23
fldcw -4(%ebp) /* restore original control word */