Use OD_LOG2 macro instead of log2().