Re:Ten Ways to Check if an Integer Is a Power Of Two in C
by zxw on Tuesday July 26, 2011 @12:12PM
(#2808001)
I'm not doing power == int(power) though which is what he warns against. I haven't done a lot of testing however as far I can tell it's working.
[ Parent
| on HN ]