hashCode property

  1. @override
int hashCode
override

Returns a hash code based on all the bits of this Int64.

Implementation

@override
int get hashCode {
  // TODO(sra): Should we ensure that hashCode values match corresponding int?
  // i.e. should `new Int64(x).hashCode == x.hashCode`?
  int bottom = ((_m & 0x3ff) << _BITS) | _l;
  int top = (_h << 12) | ((_m >> 10) & 0xfff);
  return bottom ^ top;
}