forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RedfishPkg/RedfishCrtLib: fix unresolved external symbol issue
-Fix below compiler error reported in edk2 CI. ERROR - Linker tianocore#2001 from JsonLib.lib(load.obj) : unresolved external symbol __ftol2 -The file MathFtol.c is copied from IntrinsicLib in CryptoPkg. -Add MathFtol.c to EccCheck IgnoreFiles. Signed-off-by: Nickle Wang <nicklew@nvidia.com> Cc: Abner Chang <abner.chang@amd.com> Cc: Igor Kulchytskyy <igork@ami.com> Cc: Nick Ramirez <nramirez@nvidia.com> Reviewed-by: Abner Chang <abner.chang@amd.com> Reviewed-by: Igor Kulchytskyy <igork@ami.com>
- Loading branch information
1 parent
d4c76fa
commit d9a6e7b
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** @file This file is copied from CryptoPkg/Library/IntrinsicLib/Ia32/MathFtol.c | ||
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 | ||
} | ||
} | ||
|
||
__declspec(naked) void | ||
_ftol2_sse ( | ||
void | ||
) | ||
{ | ||
_asm { | ||
fistp dword ptr [esp-4] | ||
mov eax,[esp-4] | ||
ret | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters