]>
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 | |
14 | __declspec(naked) void _ftol2 (void)\r | |
15 | {\r | |
16 | _asm {\r | |
17 | fistp qword ptr [esp-8]\r | |
18 | mov edx, [esp-4]\r | |
19 | mov eax, [esp-8]\r | |
20 | ret\r | |
21 | }\r | |
22 | }\r |