code: public static byte packParametersByte(final int registerWidth, final int registerCountLog2) {
          final int widthBits = ((registerWidth - 1) & REGISTER_WIDTH_MASK);
          final int countBits = (registerCountLog2 & LOG2_REGISTER_COUNT_MASK);
          return (byte)((widthBits << LOG2_REGISTER_COUNT_BITS) | countBits);
      }
docs: Generates a byte that encodes the parameters of a
  {@link HLLType#FULL} or {@link HLLType#SPARSE}
  HLL.<p/>
  
  The top 3 bits are used to encode <code>registerWidth - 1</code>
  (range of <code>registerWidth</code> is thus 1-9) and the bottom 5
  bits are used to encode <code>registerCountLog2</code>
  (range of <code>registerCountLog2</code> is thus 0-31).
  
  @param  registerWidth the register width (must be at least 1 and at
  most 9)
  @param  registerCountLog2 the log-base-2 of the register count (must
  be at least 0 and at most 31)
  @return the packed parameters byte