2 * Based on code written by J.T. Conklin <jtc@NetBSD.org>.
6 #include "aros/i386/asm.h"
10 .globl AROS_CDEFNAME(truncf)
11 _FUNCTION
(AROS_CDEFNAME
(truncf
))
13 .set FirstArg, 4 /* Skip Return-Adress */
16 AROS_CDEFNAME
(truncf
):
21 fstcw
-4(%ebp
) /* store fpu control word */
23 orw $
0x0c00,%dx
/* round towards -oo */
25 fldcw
-8(%ebp
) /* load modfied control word */
27 flds
8(%ebp
) /* round */
30 fldcw
-4(%ebp
) /* restore original control word */