operator - method

Uint64 operator -(
  1. Uint64 other
)

Implementation

Uint64 operator -(Uint64 other) {
  var lo = _lo - other._lo;
  var borrow = 0;
  if (lo < 0) {
    lo += 0x100000000;
    borrow = 1;
  }
  var hi = _hi - other._hi - borrow;
  if (hi < 0) {
    hi += 0x100000000;
  }
  return Uint64._(hi, lo);
}