/* Get pool size table index from the specified size. */
STATIC UINTN GetPoolIndexFromSize(UINTN Size)
/* Get pool size table index from the specified size. */
STATIC UINTN GetPoolIndexFromSize(UINTN Size)
{
  UINTN  Index;
  for (Index = 0; Index < MAX_POOL_LIST; Index++) {
    if (mPoolSizeTable[Index] >= Size) {
      return Index;
    }
  }
  return MAX_POOL_LIST;
}