From 2bead79cfc346a9f61b7bf47d849a5dcf4935622 Mon Sep 17 00:00:00 2001 From: Yi Li Date: Thu, 3 Aug 2023 12:37:42 +0800 Subject: CryptoPkg: add implemention of _ftol2_sse() to avoid build error Signed-off-by: Yi Li Cc: Jiewen Yao Cc: Xiaoyu Lu Cc: Guomin Jiang Reviewed-by: Jiewen Yao Acked-by: Ard Biesheuvel Tested-by: Ard Biesheuvel Tested-by: Brian J. Johnson Tested-by: Kenneth Lautner --- CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'CryptoPkg') 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 + } +} -- cgit v1.2.3