Re:Ten Ways to Check if an Integer Is a Power Of Two in C
by ppereira on Tuesday July 26, 2011 @04:18PM
(#2809286)
Intel has included BSF and BSR (bit scan forward / reverse) since 386, which would presumably also give you the magnitude of the power of 2.
[ Parent
| on HN ]
There are no comments on this comment yet.