MdeModulePkg: Fix XCODE Link Issue in DxeCore

In XCODE tool chain, the 64-bit bit wise and operation is causing the compiler to emit an __umoddi3.
This patch uses BaseLib API to replace 64-bit bit operation.
 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Andrew Fish <afish@apple.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16065 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Gao, Liming 2014-09-09 02:35:41 +00:00 committed by lgao4
parent cc72674b58
commit 769e45317c
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ CoreInternalWaitForTick (
IN UINT64 Counter IN UINT64 Counter
) )
{ {
while ((Counter & 0xffffffff00000000ULL) != 0) { while (RShiftU64 (Counter, 32) > 0) {
gMetronome->WaitForTick (gMetronome, 0xffffffff); gMetronome->WaitForTick (gMetronome, 0xffffffff);
Counter -= 0xffffffff; Counter -= 0xffffffff;
} }