]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c
CryptoPkg/IntrinsicLib: Fix possible unresolved external symbol issue
[mirror_edk2.git] / CryptoPkg / Library / IntrinsicLib / Ia32 / MathFtol.c
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 */
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 }