/* Return the memory type that has the least precedence. */
MTRR_MEMORY_CACHE_TYPE MtrrLibLowestType(IN UINT8 TypeBits)
/* Return the memory type that has the least precedence. */
MTRR_MEMORY_CACHE_TYPE MtrrLibLowestType(IN UINT8 TypeBits)
{
  INT8  Type;
  ASSERT (TypeBits != 0);
  for (Type = 7; (INT8)TypeBits > 0; Type--, TypeBits <<= 1) {
  }
  return (MTRR_MEMORY_CACHE_TYPE)Type;
}