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