public static int compare(int uintA, int uintB) {
    if (uintA == uintB) {
      return 0;
    }
    long a = uintA & 0xFFFFFFFFL;
    long b = uintB & 0xFFFFFFFFL;
    return a < b ? -1 : 1;
  }
Unsigned arithmetic over Java's signed types.
android/android_framework/dex-maker/src/main/java/com/android/dex/util/Unsigned.java