Int64.fromInts constructor

Int64.fromInts(
  1. int top,
  2. int bottom
)

Constructs an Int64 from a pair of 32-bit integers having the value ((top & 0xffffffff) << 32) | (bottom & 0xffffffff).

Implementation

factory Int64.fromInts(int top, int bottom) {
  top &= 0xffffffff;
  bottom &= 0xffffffff;
  int d0 = _MASK & bottom;
  int d1 = ((0xfff & top) << 10) | (0x3ff & (bottom >> _BITS));
  int d2 = _MASK2 & (top >> 12);
  return Int64._masked(d0, d1, d2);
}