public static int toByteLength(final int bitLength) {
		if (bitLength < 0) {
			throw new IllegalArgumentException(
				"Bit length must not smaller then zero: " + bitLength
			);
		}

		return (bitLength & 7) == 0   // Is a multiple of Byte.SIZE (8)
			? (bitLength >>> 3)       // divided by Byte.SIZE (8)
			: (bitLength >>> 3) + 1;  // divide by Byte.SIZE and add one
	}
Return the minimum number of bytes to store the given number of bits.

@param bitLength the number of bits
@return the number of bytes needed to store the given number of bits.
jenetics/src/main/java/io/jenetics/internal/util/Bits.java