Received: from eggs.gnu.org ([2001:4830:134:3::10]:54206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aP4iY-0007Ol-7J for qemu-devel@nongnu.org; Fri, 29 Jan 2016 03:47:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aP4iX-0006A7-3m for qemu-devel@nongnu.org; Fri, 29 Jan 2016 03:47:46 -0500 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]:49752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aP4iW-0006A1-Uw for qemu-devel@nongnu.org; Fri, 29 Jan 2016 03:47:45 -0500 Date: Fri, 29 Jan 2016 09:46:53 +0100 From: Aurelien Jarno Message-ID: <20160129084653.GB7858@aurel32.net> References: <1453807806-32698-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1453807806-32698-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH 0/4] fpu: Remove use of int_fast*_t types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, patches@linaro.org On 2016-01-26 11:30, Peter Maydell wrote: > This patchset removes the uses of int_fast*_t types from the > softfloat code: > * the return types for the "convert to 16 bit integer" functions > are changed to int16_t > * uses of int_fast*_t for a shift count or an exponent value > are changed to int > > Basically, where the type was being used to mean what should > logically be exactly 16 bits we use int16_t; where it was just > being used for a value which isn't inherently 16 bits wide > we switch to plain int. > > Compatibility note: both these changes match the logical definition > of int_fast*_t so if the code was not previously buggily relying > on the width it happened to be they will not introduce any new bugs. > In practice on glibc int_fast16_t is 32-bits on 32-bit platforms > and 64-bits on 64-bit platforms so we are changing the underlying > type size. I have tested by running a bunch of ARM regression > tests with 'risu', so I'm pretty happy this doesn't cause problems. > > The final patch removes some back-compat defines from osdep.h; > it depends on both the earlier patches in this series and also > on the targe-mips patch I sent out yesterday: > http://patchwork.ozlabs.org/patch/572843/ > (there are no other uses of the int_fast* types in QEMU.) > > thanks > -- PMM > > Peter Maydell (4): > fpu: Remove use of int_fast16_t in conversions to int16 > fpu: Use plain 'int' rather than 'int_fast16_t' for shift counts > fpu: Use plain 'int' rather than 'int_fast16_t' for exponents > osdep.h: Remove int_fast*_t Solaris compatibility code > > fpu/softfloat-macros.h | 18 +++--- > fpu/softfloat.c | 162 ++++++++++++++++++++++++++---------------------- > include/fpu/softfloat.h | 16 ++--- > include/qemu/osdep.h | 7 --- > 4 files changed, 104 insertions(+), 99 deletions(-) Great work. Reviewed-by: Aurelien Jarno -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net