[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Mips 64 emulation not compiling
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] Mips 64 emulation not compiling |
Date: |
Sat, 27 Oct 2007 16:01:40 +0300 |
On 10/27/07, J. Mayer <address@hidden> wrote:
> I also got optimized versions of bit population count which could also
> be shared:
> static always_inline int ctpop32 (uint32_t val)
> {
> int i;
>
> for (i = 0; val != 0; i++)
> val = val ^ (val - 1);
>
> return i;
> }
>
> If you prefer, I can add those shared functions (ctz32, ctz64, cto32,
> cto64, ctpop32, ctpop64) later, as they do not seem as widely used as
> clxxx functions.
This would be interesting for Sparc64. Could you compare your version
to do_popc() in target-sparc/op_helper.c?