protected static int bitLength(final BigInteger n) {
    return n.compareTo(BigInteger.ZERO) == 0 ? 0 : (n.bitLength() - 1);
  }
Compute the length in bits of the given integer

@param n big integer for which to calculate length
@return bit length
evm/src/main/java/org/hyperledger/besu/evm/gascalculator/ByzantiumGasCalculator.java