[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructio
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [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 <address@hidden>
> 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
- Re: [Qemu-ppc] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions,
David Gibson <=