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

Method compare

output/java_guava/1.4.18/UnsignedLongs.java:79–81  ·  view source on GitHub ↗

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

(long a, long b)

Source from the content-addressed store, hash-verified

77
78
79 public static int compare(long a, long b) {
80 return Longs.compare(flip(a), flip(b));
81 }
82
83 /**
84 * Returns the least value present in {@code array}, treating values as unsigned.

Callers 5

compareMethod · 0.95
compareMethod · 0.95
divideMethod · 0.95
remainderMethod · 0.95
compareToMethod · 0.95

Calls 2

compareMethod · 0.95
flipMethod · 0.95

Tested by

no test coverage detected