Simplifying test_log2 to not use floorl and similar.