diff options
author | Yi Li <yi1.li@intel.com> | 2023-08-03 12:37:42 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-08-09 07:10:31 +0000 |
commit | 2bead79cfc346a9f61b7bf47d849a5dcf4935622 (patch) | |
tree | e0aee06f9b47f9e0f24b8db05c9dc69a2f068cc3 | |
parent | b2ff8e45db304b139a791bfcfb493d17739ddb7d (diff) | |
download | edk2-2bead79cfc346a9f61b7bf47d849a5dcf4935622.tar.gz edk2-2bead79cfc346a9f61b7bf47d849a5dcf4935622.tar.bz2 edk2-2bead79cfc346a9f61b7bf47d849a5dcf4935622.zip |
CryptoPkg: add implemention of _ftol2_sse() to avoid build error
Signed-off-by: Yi Li <yi1.li@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Brian J. Johnson <brian.johnson@hpe.com>
Tested-by: Kenneth Lautner <klautner@microsoft.com>
-rw-r--r-- | CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c b/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c index 09000c6bec..adfe249b1d 100644 --- a/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c +++ b/CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c @@ -23,3 +23,15 @@ _ftol2 ( ret
}
}
+
+__declspec(naked) void
+_ftol2_sse (
+ void
+ )
+{
+ _asm {
+ fistp dword ptr [esp-4]
+ mov eax,[esp-4]
+ ret
+ }
+}
|