/* The function is called by QuickSort to compare the order of offsets of two microcode patches in RAM relative to their base address. Elements will be in ascending order. */
INTN EFIAPI MicrocodePatchOffsetCompareFunction(IN CONST VOID *Offset1, IN CONST VOID *Offset2)
/* The function is called by QuickSort to compare the order of offsets of two microcode patches in RAM relative to their base address. Elements will be in ascending order. */
INTN EFIAPI MicrocodePatchOffsetCompareFunction(IN CONST VOID *Offset1, IN CONST VOID *Offset2)
{
  if (*(UINT64 *)(Offset1) > *(UINT64 *)(Offset2)) {
    return 1;
  } else if (*(UINT64 *)(Offset1) < *(UINT64 *)(Offset2)) {
    return -1;
  } else {
    return 0;
  }
}