From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IllIQ-0007Gr-H1 for qemu-devel@nongnu.org; Sat, 27 Oct 2007 09:01:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IllIO-0007Gb-43 for qemu-devel@nongnu.org; Sat, 27 Oct 2007 09:01:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IllIO-0007GW-0M for qemu-devel@nongnu.org; Sat, 27 Oct 2007 09:01:44 -0400 Received: from nf-out-0910.google.com ([64.233.182.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IllIM-0005K5-O0 for qemu-devel@nongnu.org; Sat, 27 Oct 2007 09:01:43 -0400 Received: by nf-out-0910.google.com with SMTP id 30so1080983nfu for ; Sat, 27 Oct 2007 06:01:41 -0700 (PDT) Message-ID: Date: Sat, 27 Oct 2007 16:01:40 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] Mips 64 emulation not compiling In-Reply-To: <1193487891.16781.280.camel@rapid> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1193222474.16781.236.camel@rapid> <20071027111939.GH29176@networkno.de> <1193487891.16781.280.camel@rapid> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 10/27/07, J. Mayer 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?