Received: from eggs.gnu.org ([140.186.70.92]:46929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzYKF-0006pp-DB for qemu-devel@nongnu.org; Fri, 02 Sep 2011 14:18:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzYKE-000252-3U for qemu-devel@nongnu.org; Fri, 02 Sep 2011 14:18:47 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:48758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzYKD-0001zr-LY for qemu-devel@nongnu.org; Fri, 02 Sep 2011 14:18:46 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Fri, 2 Sep 2011 20:18:41 +0200 References: <0A1596C8-38F4-41F7-8100-AD1E024CE7A5@suse.de> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] softfloat breaks cocoa.m List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Anthony Liguori , Alexander Graf , QEMU Developers , Blue Swirl , Paolo Bonzini , Aurelien Jarno Am 02.09.2011 um 18:38 schrieb Peter Maydell: > 2011/8/28 Peter Maydell : >> On 28 August 2011 14:02, Alexander Graf wrote: >> There are two ways we can fix the naming clash here: >> >> (1) change int16 -> int_fast16_t. This was argued against because >> it means that the type might have a different width depending on >> the host system, which means that where softfloat buggily makes >> assumptions about the typewidth this would surface only on the >> minority of systems where (eg) int_fast16_t wasn't 32 bits. >> (In theory this is just preserving current behaviour but in fact >> the set of typedefs in softfloat.h doesn't take advantage of the >> "may be bigger" leeway; for example we 'typedef int8_t int8' even >> though the comment above specifically suggests that int8 should >> be typedef'd as an int.) >> >> (2) change int16 -> int16_t. This was argued against because it >> would be dropping the information in the current softfloat code >> about where we require a 16 bit type for correctness and where >> we are happy for the type to be larger if it's more efficient. > > I think I was the main advocate for (1) here. If somebody felt > like doing a quick benchmark of int*_t vs int_fast*_t (just some > simple floatingpoint benchmark on a linux-user target that uses > TCG and softfloat) that might help break the deadlock one way > or the other. If there's no real difference in speed then I'd > be willing to see us take option (2) instead. What about my preparatory patches? Can you ack them? Andreas