]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c
CryptoPkg: Apply uncrustify changes
[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
15 _ftol2 (
16 void
17 )
18 {
19 _asm {
20 fistp qword ptr [esp-8]
21 mov edx, [esp-4]
22 mov eax, [esp-8]
23 ret
24 }
25 }