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() {
	}
}

@@ -171,16 +171,55 @@
 e(v %3E= 1
+, %22Logarithm argument must be positive%22
 );%0D%0A%09%09re

improve debug log