/* The small/large bit is included in the descriptor Id, but the size bits are not included for small resource data elements. */
BOOLEAN EFIAPI AmlRdCompareDescId(IN CONST AML_RD_HEADER *Header, IN AML_RD_HEADER DescriptorId)
/* The small/large bit is included in the descriptor Id, but the size bits are not included for small resource data elements. */
BOOLEAN EFIAPI AmlRdCompareDescId(IN CONST AML_RD_HEADER *Header, IN AML_RD_HEADER DescriptorId)
{
  if (Header == NULL) {
    ASSERT (0);
    return FALSE;
  }
  if (AML_RD_IS_LARGE (Header)) {
    return ((*Header ^ DescriptorId) == 0);
  } else {
    return (((*Header & AML_RD_SMALL_ID_MASK) ^ DescriptorId) == 0);
  }
}