Efficient rounded log2 algorithms on integral and rational types.
This is not an officially supported Google product.
This provides a user-facing API for the GHC primitive integerLog2#
, in the
form of functions computing the floor, ceiling, or other rounded form of the
base-2 logarithm of Integral
or Rational
types.