lj property Null safety

NormalOperation lj
final

Implementation

static final NormalOperation lj = NormalOperation.intOnly(
    intCalc: (Model m) {
      int shifts = 0;
      m.lastX = m.x;
      BigInt val = m.x.internal;
      if (val != BigInt.zero) {
        while (val & m.signMask == BigInt.zero) {
          shifts++;
          val <<= 1;
        }
      }
      m.pushStack();
      m.y = Value.fromInternal(val);
      m.xI = BigInt.from(shifts);
    },
    name: 'LJ');