diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/edk2/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/edk2/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c')
-rw-r--r-- | roms/edk2/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/roms/edk2/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c b/roms/edk2/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c new file mode 100644 index 000000000..147a19a4a --- /dev/null +++ b/roms/edk2/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c @@ -0,0 +1,22 @@ +/** @file
+ 64-bit Math Worker Function.
+ The 32-bit versions of C compiler generate calls to library routines
+ to handle 64-bit math. These functions use non-standard calling conventions.
+
+Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
+SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+/*
+ * Floating point to integer conversion.
+ */
+__declspec(naked) void _ftol2 (void)
+{
+ _asm {
+ fistp qword ptr [esp-8]
+ mov edx, [esp-4]
+ mov eax, [esp-8]
+ ret
+ }
+}
|