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:
Jeremy Compostella 2024-10-09 15:03:13 -07:00 committed by mergify[bot]
parent 996e740cc8
commit 866abb2338
1 changed files with 1 additions and 1 deletions

View File

@ -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