Add GCC specific optimisation for log base 2 operations.

Based on a patch from Cristian Rodríguez.
3 files changed