operator - method

Uint128 operator -(
  1. Uint128 other
)

Implementation

Uint128 operator -(Uint128 other) {
  final (loDiff, borrowMask) = Uint64.sbb(_lo, other._lo, Uint64.zero);
  final borrowBit = borrowMask.isZero ? Uint64.zero : Uint64.one;
  final hiDiff = _hi - other._hi - borrowBit;
  return Uint128._(hiDiff, loDiff);
}