[Ihsan Kehribar] points out a clever trick you can use to quickly and efficiently compute the logarithm of a 32-bit integer. The technique relies on the CLZ instruction which counts the number of ...
There was a time not so long ago when calculators weren’t standard equipment for computations. The log() button did not exist, and some math had to be done by hand. John Napier and his logarithm ...