public static FastCheckPrecisionScaleStatus fastCheckPrecisionScale(
      int fastSignum, long fast0, long fast1, long fast2,
      int fastIntegerDigitCount, int fastScale,
      int maxPrecision, int maxScale) {

    if (fastSignum == 0) {
      return FastCheckPrecisionScaleStatus.NO_CHANGE;
    }
    final int maxIntegerDigitCount = maxPrecision - maxScale;
    if (fastIntegerDigitCount > maxIntegerDigitCount) {
      return FastCheckPrecisionScaleStatus.OVERFLOW;
    }
    if (fastScale > maxScale) {
      return FastCheckPrecisionScaleStatus.UPDATE_SCALE_DOWN;
    }
    return FastCheckPrecisionScaleStatus.NO_CHANGE;
  }
Fast decimal scale up by factor of 10.
@param fast0 word 0 of the internal representation
@param fast1 word 1
@param fast2 word 2
@param scaleUp the number of integer digits to scale up by
@param fastResult an object to reuse
@return was the operation successfule?
storage-api/src/java/org/apache/hadoop/hive/common/type/FastHiveDecimalImpl.java