MCPcopy Index your code
hub / github.com/questdb/questdb / spread

Method spread

core/src/main/java/io/questdb/std/Hash.java:168–170  ·  view source on GitHub ↗

(copied from ConcurrentHashMap) Spreads (XORs) higher bits of hash to lower and also forces top bit to 0. Because the table uses power-of-two masking, sets of hashes that vary only in bits above the current mask will always collide. (Among known examples are sets of Float keys holding consecutive wh

(int h)

Source from the content-addressed store, hash-verified

166 * @return adjusted hash code
167 */
168 public static int spread(int h) {
169 return (h ^ (h >>> 16)) & SPREAD_HASH_BITS;
170 }
171
172 /**
173 * Murmur3 finalizer. Kept as a private helper exclusively for

Callers 15

rowMethod · 0.95
keyIndexMethod · 0.95
removeAtMethod · 0.95
loMethod · 0.95
idxMethod · 0.95
removeAtMethod · 0.95
keyIndexMethod · 0.95
removeAtMethod · 0.95
keyIndexMethod · 0.95
removeAtMethod · 0.95
keyIndexMethod · 0.95
removeAt0Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected