From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYnVj-0000Lz-75 for qemu-devel@nongnu.org; Thu, 08 Dec 2011 18:36:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYnVi-0006bU-59 for qemu-devel@nongnu.org; Thu, 08 Dec 2011 18:36:19 -0500 Received: from mout.web.de ([212.227.15.3]:52983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYnVh-0006bL-M3 for qemu-devel@nongnu.org; Thu, 08 Dec 2011 18:36:18 -0500 Message-ID: <4EE149B2.1030507@web.de> Date: Fri, 09 Dec 2011 00:35:14 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1323244048-6021-1-git-send-email-balrogg@gmail.com> <1323244048-6021-3-git-send-email-balrogg@gmail.com> <4EDFD6CF.6000001@web.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 2/2] configure: remove --enable-cocoa (default), add --disable-cocoa. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org Am 07.12.2011 22:21, schrieb Peter Maydell: > On 7 December 2011 21:12, Andreas Färber wrote: >> Note that I have a patch that replaces uint16 with uint_fast16_t, >> properly fixing the Cocoa build. What I don't have yet is all the other >> conversions (Coccinelle doesn't fully do int16 conversion, for example) >> to run the benchmarks Peter asked for. > > For the benchmarks surely it suffices to flip the typedefs, ie compare > typedef uint8_t uint8; > typedef int8_t int8; > typedef uint16_t uint16; > typedef int16_t int16; > typedef uint32_t uint32; > typedef int32_t int32; > typedef uint64_t uint64; > typedef int64_t int64; > > with > typedef uint_fast8_t uint8; > typedef int_fast8_t int8; > typedef uint_fast16_t uint16; > typedef int_fast16_t int16; > typedef uint_fast32_t uint32; > typedef int_fast32_t int32; > typedef uint_fast64_t uint64; > typedef int_fast64_t int64; > > ? > > We only need to do the full search-n-replace when we've picked > which one we're going for... FWIW, target-mips/cpu.h has this: // uint_fast8_t and uint_fast16_t not in // XXX: move that elsewhere #if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10 typedef unsigned char uint_fast8_t; typedef unsigned int uint_fast16_t; #endif This shouldn't stop us from using these types, on the contrary, there is prior art. We'd just have to move these to qemu-common.h or so. We still don't build on OpenIndiana due to -std=gnu99 vs. make_floatx80() initialization code BTW. Any ideas there appreciated. Andreas