src/Hash.js
function hashNumber(n) {
  if (n !== n || n === Infinity) {
    return 0;
  }
  let hash = n | 0;
  if (hash !== n) {
    hash ^= n * 0xffffffff;
  }
  while (n > 0xffffffff) {
    n /= 0xffffffff;
    hash ^= n;
  }
  return smi(hash);
}
function hashNumber(n) {
  if (n !== n || n === Infinity) {
    return 0;
  }
  let hash = n | 0;
  if (hash !== n) {
    hash ^= n * 0xffffffff;
  }
  while (n > 0xffffffff) {
    n /= 0xffffffff;
    hash ^= n;
  }
  return smi(hash);
}
function hashNumber ( n ) { if ( n !== n || n === Infinity ) { return 0 ; } let hash = n | 0 ; if ( hash !== n ) { hash ^= n * 0xffffffff ; } while ( n > 0xffffffff ) { n /= 0xffffffff ; hash ^= n ; } return smi ( hash ) ; }
Compress arbitrarily large numbers into smi hashes.
Compress arbitrarily large numbers into smi hashes .