public static void fastSetFromInt(int intValue, FastHiveDecimal fastResult) {
    if (intValue == 0) {
      // Zero special case.
      return;
    }
    if (intValue > 0) {
      fastResult.fastSignum = 1;
    } else {
      fastResult.fastSignum = -1;
      intValue = Math.abs(intValue);
    }
    // 10 digit int is all in lowest 16 decimal digit longword.
    // Since we are creating with scale 0, no fraction digits to zero trim.
    fastResult.fast0 = intValue & 0xFFFFFFFFL;
    fastResult.fastIntegerDigitCount =
        fastLongWordPrecision(fastResult.fast0);
  }
Creates a scale 0 fast decimal from an int.

NOTE: The fastSetFromString method requires the caller to pass a fastResult
parameter has been reset for better performance.
@param intValue the value to set
@param fastResult an object to reuse
storage-api/src/java/org/apache/hadoop/hive/common/type/FastHiveDecimalImpl.java