[POWERPC] Add "is_power_of_2" checking to log2.h.