public static int getIntsPerElement(int precision) {
    assert (precision >= 0 && precision <= 38);
    if (precision <= 9) {
      return 1;
    } else if (precision <= 19) {
      return 2;
    } else if (precision <= 28) {
      return 3;
    }
    return 4;
  }
Determines the number of ints to store one value.

@param precision
         precision (0-38)
@return the number of ints to store one value
common/src/java/org/apache/hadoop/hive/common/type/UnsignedInt128.java