Init.Data.Nat.Log2
source
Computes ⌊max0(log₂n)⌋.
⌊max0(log₂n)⌋
log20=log21=0, log22=1, ..., log2(2^i)=i, etc.
log20=log21=0
log22=1
log2(2^i)=i