package org.psjava.formula;

import org.psjava.util.AssertStatus;

public class IntegerBinaryLogarithm {

	public static int calc(int v) {
		AssertStatus.assertTrue(v >= 1);
		return 31 - Integer.numberOfLeadingZeros(v);
	}

	private IntegerBinaryLogarithm() {
	}
}

package org.psjava.formula;

import org.psjava.util.AssertStatus;

public class IntegerBinaryLogarithm {

	public static int calc(int v) {
		AssertStatus.assertTrue(v >= 1, "Logarithm argument must be positive");
		return 31 - Integer.numberOfLeadingZeros(v);
	}

	private IntegerBinaryLogarithm() {
	}
}

improve debug log