mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Replace right bit shift operator with RShiftU64
Instead of using bit shift operations, it is preferable to use BaseLib bit shift functions to prevent compilers from inserting intrinsics. Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
This commit is contained in:
parent
996e740cc8
commit
866abb2338
|
@ -638,7 +638,7 @@ PeiAllocatePages (
|
|||
// Verify that there is sufficient memory to satisfy the allocation.
|
||||
//
|
||||
RemainingMemory = (UINTN)(*FreeMemoryTop - *FreeMemoryBottom);
|
||||
RemainingPages = RemainingMemory >> EFI_PAGE_SHIFT;
|
||||
RemainingPages = (UINTN)(RShiftU64 (RemainingMemory, EFI_PAGE_SHIFT));
|
||||
//
|
||||
// The number of remaining pages needs to be greater than or equal to that of
|
||||
// the request pages. In addition, there should be enough space left to hold a
|
||||
|
|
Loading…
Reference in New Issue