MCPcopy Create free account
hub / github.com/antlr/codebuff / compare

Method compare

output/java_guava/1.4.18/UnsignedInts.java:70–72  ·  view source on GitHub ↗

Compares the two specified int values, treating them as unsigned values between 0 and 2^32 - 1 inclusive. @param a the first unsigned int to compare @param b the second unsigned int to compare @return a negative value if a is less than b; a po

(int a, int b)

Source from the content-addressed store, hash-verified

68
69
70 public static int compare(int a, int b) {
71 return Ints.compare(flip(a), flip(b));
72 }
73
74 /**
75 * Returns the value of the given {@code int} as a {@code long}, when treated as unsigned.

Callers 1

compareMethod · 0.95

Calls 2

compareMethod · 0.95
flipMethod · 0.95

Tested by

no test coverage detected