private int bitsConsumedByUnitSize() {
		if (unitSize < 1 || unitSize > 8) {
			throw new IllegalArgumentException("Unsupported unit size: " + unitSize);
		}
		int cnt = 0;
		for (int test = unitSize - 1; test != 0; test >>= 1) {
			++cnt;
		}
		return cnt;
	}
Constructs a new address space with the given name, bit size, type and unique value.
@param size the number of bits required to represent the largest address 
the space.
@param unitSize number of bytes contained at each addressable location (i.e., word-size in bytes)
@param type the type of the space
@param unique the unique id for this space.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/address/AbstractAddressSpace.java