2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * PURPOSE: Implementation of tan
5 * FILE: lib/sdk/crt/math/amd64/floorf.S
6 * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
9 /* INCLUDES ******************************************************************/
11 #include <reactos/asm.h>
12 #include <ndk/amd64/asm.h>
14 /* FUNCTIONS ****************************************************************/
20 /* Put parameter on the stack */
21 movss [rsp - 0x10], xmm0
24 /* Change fpu control word to round down */
32 /* Round to integer */
35 /* Restore fpu control word */
38 fstp dword ptr [rsp - 0x10]
39 movss xmm0, [rsp - 0x10]