On 28 October 2010 23:52, Dave Angel <span dir="ltr"><<a href="mailto:davea@ieee.org">davea@ieee.org</a>></span> wrote:<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The ~- trick only works on two's complement numbers. I've worked on machines in the past that used one's complement, and this wouldn't work there.<br>
<br>
DaveA<br></blockquote><div><br></div><div>I imagine this wouldn't work on floating point numbers either.</div><div><br></div><div>Cheers,</div><div>Xav </div></div><br>