public static short bitLength(int v0, int v1, int v2, int v3) {
    if (v3 != 0) {
      return (short) (bitLengthInWord(v3) + 96);
    }
    if (v2 != 0) {
      return (short) (bitLengthInWord(v2) + 64);
    }
    if (v1 != 0) {
      return (short) (bitLengthInWord(v1) + 32);
    }
    return bitLengthInWord(v0);
  }
Returns the minimal number of bits to represent the words.

@param v0
         v0
@param v1
         v1
@param v2
         v2
@param v3
         v3
@return the minimal number of bits to represent the words
common/src/java/org/apache/hadoop/hive/common/type/SqlMathUtil.java