]>
Commit | Line | Data |
---|---|---|
96dbfad9 XL |
1 | /** @file\r |
2 | 64-bit Math Worker Function.\r | |
3 | The 32-bit versions of C compiler generate calls to library routines\r | |
4 | to handle 64-bit math. These functions use non-standard calling conventions.\r | |
5 | \r | |
6 | Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r | |
7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
8 | \r | |
9 | **/\r | |
10 | \r | |
11 | /*\r | |
12 | * Floating point to integer conversion.\r | |
13 | */\r | |
7c342378 MK |
14 | __declspec(naked) void\r |
15 | _ftol2 (\r | |
16 | void\r | |
17 | )\r | |
96dbfad9 XL |
18 | {\r |
19 | _asm {\r | |
20 | fistp qword ptr [esp-8]\r | |
21 | mov edx, [esp-4]\r | |
22 | mov eax, [esp-8]\r | |
23 | ret\r | |
24 | }\r | |
25 | }\r |