qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instruct


From: David Gibson
Subject: Re: [Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions
Date: Fri, 29 Jul 2016 14:56:14 +1000
User-agent: Mutt/1.6.2 (2016-07-01)

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;address@hidden&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

[Prev in Thread] Current Thread [Next in Thread]