wdec14 method Null safety

void wdec14(
  1. int l,
  2. int h,
  3. List<int> a_b
)

Implementation

static void wdec14(int l, int h, List<int> a_b) {
  final ls = uint16ToInt16(l);
  final hs = uint16ToInt16(h);

  final hi = hs;
  final ai = ls + (hi & 1) + (hi >> 1);

  final as = ai;
  final bs = ai - hi;

  a_b[0] = as;
  a_b[1] = bs;
}