Fixed-point base 2 logarithm algorithm implementation in C; includes added base e and base 10 support, too.