mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/Core/Dxe: rebase to ARRAY_SIZE()
Cc: Feng Tian <feng.tian@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Feng Tian <feng.tian@Intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
60a2d24822
commit
ed998e06a4
|
@ -58,7 +58,7 @@ STATIC CONST UINT16 mPoolSizeTable[] = {
|
|||
#define SIZE_TO_LIST(a) (GetPoolIndexFromSize (a))
|
||||
#define LIST_TO_SIZE(a) (mPoolSizeTable [a])
|
||||
|
||||
#define MAX_POOL_LIST (sizeof (mPoolSizeTable) / sizeof (mPoolSizeTable[0]))
|
||||
#define MAX_POOL_LIST (ARRAY_SIZE (mPoolSizeTable))
|
||||
|
||||
#define MAX_POOL_SIZE (MAX_ADDRESS - POOL_OVERHEAD)
|
||||
|
||||
|
|
Loading…
Reference in New Issue