Content deleted Content added
Joel Brennan (talk | contribs) mNo edit summary |
|||
Line 66:
}
</syntaxhighlight>
This version is dangerous because if the <code>count</code> is 0 or 32, it asks for a 32-bit shift, which is [[undefined behaviour]] in the C language standard. However, it tends to work anyway, because most microprocessors implement <code>value >> 32</code> as either a 32-bit shift (producing 0) or a 0-bit shift (producing the original <code>value</code>), and either one produces the correct result in this application.
==Example==
|