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

Method flip

output/java_guava/1.4.16/UnsignedLongs.java:64–66  ·  view source on GitHub ↗

A (self-inverse) bijection which converts the ordering on unsigned longs to the ordering on longs, that is, a <= b as unsigned longs if and only if flip(a) <= flip(b) as signed longs.

(long a)

Source from the content-addressed store, hash-verified

62 * signed longs.
63 */
64 private static long flip(long a) {
65 return a ^ Long.MIN_VALUE;
66 }
67
68 /**
69 * Compares the two specified {@code long} values, treating them as unsigned values between

Callers 3

compareMethod · 0.95
minMethod · 0.95
maxMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected