Add macro EFI_SIZE_TO_PAGES/EFI_PAGES_TO_SIZE in UefiBaseType.h.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2689 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
yshang1 2007-06-20 07:44:50 +00:00
parent 935456bbeb
commit 833bd94e28
1 changed files with 3 additions and 0 deletions

View File

@ -160,5 +160,8 @@ typedef union {
#define EFI_PAGE_MASK 0xFFF
#define EFI_PAGE_SHIFT 12
#define EFI_SIZE_TO_PAGES(a) (((a) >> EFI_PAGE_SHIFT) + (((a) & EFI_PAGE_MASK) ? 1 : 0))
#define EFI_PAGES_TO_SIZE(a) ( (a) << EFI_PAGE_SHIFT)
#endif