The Mathematical Gazette is the original journal of the Mathematical Association and it is now over a century old. Its readership is a mixture of school teachers, college and university lecturers, ...
[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 ...