This allows to use compiler intrinsics and specialized hardware
instructions to compute log2, which results in better performance.
Also, added tests for the generic implementation using Boost.Multiprecision
integers.
Closes https://github.com/boostorg/integer/issues/31.