android doesn't have log2
Merge pull request #1480 from wanabe/patch-1

android doesn't have log2