"In just a few CPU instructions, the truncated base 2 logarithm of any integer can be computed for any integer from -2^63 … 2^63 – 1. This has interesting applications in being able to rapidly access logarithmically increasing arrays. The Linux GCC compiler provides a built in function, __builtin_clzll, to allow this CPU instruction to be used directly from C and C++ on a 64 bit integer.
"