/* Return TRUE when the Endpoint is in any of the Ranges. */
BOOLEAN IsEndpointInRanges(IN UINT64 Endpoint, IN MTRR_MEMORY_RANGE *Ranges, IN UINTN RangeCount)
/* Return TRUE when the Endpoint is in any of the Ranges. */
BOOLEAN IsEndpointInRanges(IN UINT64 Endpoint, IN MTRR_MEMORY_RANGE *Ranges, IN UINTN RangeCount)
{
  UINT32  Index;
  for (Index = 0; Index < RangeCount; Index++) {
    if (AddressInRange (Endpoint, Ranges[Index])) {
      return TRUE;
    }
  }
  return FALSE;
}