operator + method

Uint256 operator +(
  1. Uint256 other
)

Implementation

Uint256 operator +(Uint256 other) {
  final (s0, c1) = Uint64.adc(_d0, other._d0, Uint64.zero);
  final (s1, c2) = Uint64.adc(_d1, other._d1, c1);
  final (s2, c3) = Uint64.adc(_d2, other._d2, c2);
  final (s3, _) = Uint64.adc(
    _d3,
    other._d3,
    c3,
  ); // top carry discarded: wrapping
  return Uint256._(s3, s2, s1, s0);
}