2 * Written by J.T. Conklin <jtc@netbsd.org>.
6 #include "aros/i386/asm.h"
10 .globl AROS_CDEFNAME(floorf)
11 _FUNCTION
(AROS_CDEFNAME
(floorf
))
13 .set FirstArg, 4 /* Skip Return-Adress */
16 AROS_CDEFNAME
(floorf
):
21 fstcw
-4(%ebp
) /* store fpu control word */
23 orw $
0x0400,%dx
/* round towards -oo */
26 fldcw
-8(%ebp
) /* load modfied control word */
28 flds
8(%ebp
);
/* round */
31 fldcw
-4(%ebp
) /* restore original control word */