Bit manipulation: Difference between revisions

Content deleted Content added
m Adding missing space; uncapitalized second "bit" in sentence.
Tag: Reverted
Line 39:
x & (x-1) == 0...<span style="color:red">1</span>...000...0
 
If inline [[assembly language]] code is used, then [[Hamming weight|an instruction]] that counts the number of 1's or 0's in the operand might be available; an operand with exactly one '1' bit is a power of 2. However, such an instruction may have greater latency than the bitwise method above.
 
== Bit manipulation operations==