You'll have to do the work yourself.
Here is some logic to help you out:
-x & (x+1)
= rightmost zero bit
= 0 if no zero bits in set
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 2 of 2
Threaded View
|
Click Here to Expand Forum to Full Width |