/* Comparator function for two opaque pointers, ordering on (unsigned) pointer value itself. Can be used as both Key and UserStruct comparator. */
STATIC INTN EFIAPI PointerCompare(IN CONST VOID *Pointer1, IN CONST VOID *Pointer2)
/* Comparator function for two opaque pointers, ordering on (unsigned) pointer value itself. Can be used as both Key and UserStruct comparator. */
STATIC INTN EFIAPI PointerCompare(IN CONST VOID *Pointer1, IN CONST VOID *Pointer2)
{
  if (Pointer1 == Pointer2) {
    return 0;
  }
  if ((UINTN)Pointer1 < (UINTN)Pointer2) {
    return -1;
  }
  return 1;
}