qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 03/18] target-ppc: Add ISA2.06 divdeu[o] Instruc


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 03/18] target-ppc: Add ISA2.06 divdeu[o] Instructions
Date: Mon, 09 Dec 2013 16:05:44 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 12/09/2013 07:47 AM, Tom Musta wrote:
> This patch adds the Divide Doubleword Extended Unsigned
> instructions.  This instruction requires dividing a 128-bit
> value by a 64 bit value.  Since 128 bit integer division is
> not supported in TCG, a helper is used, providing a
> repeated difference algorithm.

It's long past time we provided this generically.

There's a (slightly) better algorithm than this in target-i386/int_helper.c.
Extra points for stealing the (much) better algorithm from gcc's libgcc2.c.

This ought to go in "host-utils.h" next to mul[us]64.


r~



reply via email to

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