(function from pyomo.core.kernel.piecewise_library.util)
pyomo.core.kernel.piecewise_library.util
Computes the exact value of floor(log2(n)) without using floating point calculations. Input argument must be a positive integer.