Using a Faster Approach to Judge if a Integer is power of Two December 26, 2013 C/C++, integer No Comments Given a signed-integer, we can use the following straightforward method to judge it is the power of two inline bool check1(int i) { if (i < 1) return false; … [Continue Reading...]