Replaced log function with a bit shift function

Signed-off-by: Cory Feitelson <cfeitelson@roovy.com>