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