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 <ndk/amd64/asm.h>
12 #include <ndk/amd64/asmmacro.S>
14 .intel_syntax noprefix
18 /* Put parameter on the stack */
19 movss [rsp - 0x10], xmm0
22 /* Change fpu control word to round down */
30 /* Round to integer */
33 /* Restore fpu control word */
36 fstp dword ptr [rsp - 0x10]
37 movss xmm0, [rsp - 0x10]