On Fri, Jul 29, 2016 at 09:53:14AM +0530, Richard Henderson wrote:
> <p dir="ltr">On Jul 29, 2016 09:16, David Gibson 
> &lt;da...@gibson.dropbear.id.au&gt; wrote:<br>
> &gt; So, I noticed this and was also concerned, but I more or less<br>
> &gt; convinced myself that it would still work, by the magic of 2's<br>
> &gt; complement, as long as sizeof(int) &gt;= 4.</p>
> <p dir="ltr">Consider arguments 0xffffffff, 0.&nbsp; The unsigned absolute 
> difference should be 0xffffffff.&nbsp; With abs(3) we get 1.<br></p>

Ah, good point, I didn't think that through properly.

Btw, your mailer seems to have screwed up and sent this as html only.

-- 
David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature

Reply via email to