static bool IsPowerOfTwo( int x )

Summary

Return true if the number is a power of two (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, etc)
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.