@amritk/nish-x86_64-linux 0.37.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3770,10 +3770,13 @@ const PG_LOW32: i64 = 4294967295
3770
3770
  * The batcher's table hash of an int8 key, 31 bits: the high half times an
3771
3771
  * odd constant xored into the low half, then MurmurHash3's 32-bit finalizer,
3772
3772
  * whose unsigned multiplies wrap by definition. Every step is a bijection on
3773
- * 32 bits, so keys of one high half never collide, and the finalizer spreads
3774
- * a dense run of ids over the whole table: runs that would land on one
3775
- * another's slots under a near-identity hash do not merge into one cluster
3776
- * longer than `PG_BATCH_PROBES`.
3773
+ * 32 bits, so keys of one high half get distinct 32-bit hashes; the last
3774
+ * `>> 1` drops their lowest bit, so at most two such keys share a 31-bit hash.
3775
+ * The finalizer spreads a dense run of ids over the whole table: runs that
3776
+ * would land on one another's slots under a near-identity hash do not merge
3777
+ * into one cluster longer than `PG_BATCH_PROBES`. Keys of different high
3778
+ * halves can be built to share one hash; each costs up to
3779
+ * `PG_BATCH_PROBES` probes.
3777
3780
  */
3778
3781
  const pgIntHash = (key: i64): i32 => {
3779
3782
  const lo: u32 = toU32(key & PG_LOW32)