public int divideDestructive(int right) {
    int ret;
    if (right < 0) {
      ret = this.mag.divideDestructive(-right);
      this.negative = !this.negative;
    } else {
      ret = this.mag.divideDestructive(right);
    }
    ret = ret & SqlMathUtil.FULLBITS_31;
    if (this.negative) {
      ret = -ret;
    }
    if (this.mag.isZero()) {
      this.negative = false;
    }
    return ret;
  }
Divides this value with the given value. This version is destructive,
meaning it modifies this object.

@param right
         the value to divide
@return remainder
common/src/java/org/apache/hadoop/hive/common/type/SignedInt128.java