Received: from [140.186.70.92] (port=44587 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwXBA-0007YX-Nj for qemu-devel@nongnu.org; Mon, 07 Mar 2011 04:56:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwXB8-0007sA-4B for qemu-devel@nongnu.org; Mon, 07 Mar 2011 04:56:39 -0500 Received: from hall.aurel32.net ([88.191.126.93]:49704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwXB7-0007s5-R1 for qemu-devel@nongnu.org; Mon, 07 Mar 2011 04:56:38 -0500 Date: Mon, 7 Mar 2011 10:56:35 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH v5 10/10] softfloat: Use [u]int_fast64_t consistently Message-ID: <20110307095635.GG10503@volta.aurel32.net> References: <1299458053-69428-1-git-send-email-andreas.faerber@web.de> <1299458053-69428-2-git-send-email-andreas.faerber@web.de> <1299458053-69428-3-git-send-email-andreas.faerber@web.de> <1299458053-69428-4-git-send-email-andreas.faerber@web.de> <1299458053-69428-5-git-send-email-andreas.faerber@web.de> <1299458053-69428-6-git-send-email-andreas.faerber@web.de> <1299458053-69428-7-git-send-email-andreas.faerber@web.de> <1299458053-69428-8-git-send-email-andreas.faerber@web.de> <1299458053-69428-9-git-send-email-andreas.faerber@web.de> <1299458053-69428-10-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1299458053-69428-10-git-send-email-andreas.faerber@web.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-15?Q?F=E4rber?= Cc: qemu-devel@nongnu.org On Mon, Mar 07, 2011 at 01:34:13AM +0100, Andreas Färber wrote: > v5: > * Initial. > > Signed-off-by: Andreas Färber > --- > fpu/softfloat-native.c | 26 +++++++++++++------------- > fpu/softfloat-native.h | 28 ++++++++++++++-------------- > fpu/softfloat.c | 4 ++-- > 3 files changed, 29 insertions(+), 29 deletions(-) > > diff --git a/fpu/softfloat-native.c b/fpu/softfloat-native.c > index 2c08958..3aa64f6 100644 > --- a/fpu/softfloat-native.c > +++ b/fpu/softfloat-native.c > @@ -103,24 +103,24 @@ floatx80 int32_to_floatx80(int_fast32_t v STATUS_PARAM) > return (floatx80)v; > } > #endif > -float32 int64_to_float32( int64_t v STATUS_PARAM) > +float32 int64_to_float32( int_fast64_t v STATUS_PARAM) > { > return (float32)v; > } > -float32 uint64_to_float32( uint64_t v STATUS_PARAM) > +float32 uint64_to_float32( uint_fast64_t v STATUS_PARAM) > { > return (float32)v; > } > -float64 int64_to_float64( int64_t v STATUS_PARAM) > +float64 int64_to_float64( int_fast64_t v STATUS_PARAM) > { > return (float64)v; > } > -float64 uint64_to_float64( uint64_t v STATUS_PARAM) > +float64 uint64_to_float64( uint_fast64_t v STATUS_PARAM) > { > return (float64)v; > } > #ifdef FLOATX80 > -floatx80 int64_to_floatx80( int64_t v STATUS_PARAM) > +floatx80 int64_to_floatx80( int_fast64_t v STATUS_PARAM) > { > return (floatx80)v; > } > @@ -152,12 +152,12 @@ int_fast32_t float32_to_int32_round_to_zero( float32 a STATUS_PARAM) > { > return (int32_t)a; > } > -int64_t float32_to_int64( float32 a STATUS_PARAM) > +int_fast64_t float32_to_int64( float32 a STATUS_PARAM) > { > return llrintf(a); > } > > -int64_t float32_to_int64_round_to_zero( float32 a STATUS_PARAM) > +int_fast64_t float32_to_int64_round_to_zero( float32 a STATUS_PARAM) > { > return (int64_t)a; > } > @@ -274,11 +274,11 @@ int_fast32_t float64_to_int32_round_to_zero( float64 a STATUS_PARAM) > { > return (int32_t)a; > } > -int64_t float64_to_int64( float64 a STATUS_PARAM) > +int_fast64_t float64_to_int64( float64 a STATUS_PARAM) > { > return llrint(a); > } > -int64_t float64_to_int64_round_to_zero( float64 a STATUS_PARAM) > +int_fast64_t float64_to_int64_round_to_zero( float64 a STATUS_PARAM) > { > return (int64_t)a; > } > @@ -329,7 +329,7 @@ uint_fast32_t float64_to_uint32_round_to_zero( float64 a STATUS_PARAM) > } > return res; > } > -uint64_t float64_to_uint64 (float64 a STATUS_PARAM) > +uint_fast64_t float64_to_uint64 (float64 a STATUS_PARAM) > { > int64_t v; > > @@ -337,7 +337,7 @@ uint64_t float64_to_uint64 (float64 a STATUS_PARAM) > > return v - INT64_MIN; > } > -uint64_t float64_to_uint64_round_to_zero (float64 a STATUS_PARAM) > +uint_fast64_t float64_to_uint64_round_to_zero (float64 a STATUS_PARAM) > { > int64_t v; > > @@ -435,11 +435,11 @@ int_fast32_t floatx80_to_int32_round_to_zero( floatx80 a STATUS_PARAM) > { > return (int)a; > } > -int64_t floatx80_to_int64( floatx80 a STATUS_PARAM) > +int_fast64_t floatx80_to_int64( floatx80 a STATUS_PARAM) > { > return llrintl(a); > } > -int64_t floatx80_to_int64_round_to_zero( floatx80 a STATUS_PARAM) > +int_fast64_t floatx80_to_int64_round_to_zero( floatx80 a STATUS_PARAM) > { > return (int64_t)a; > } > diff --git a/fpu/softfloat-native.h b/fpu/softfloat-native.h > index 6cf5dc3..b198f48 100644 > --- a/fpu/softfloat-native.h > +++ b/fpu/softfloat-native.h > @@ -160,15 +160,15 @@ floatx80 int32_to_floatx80( int_fast32_t STATUS_PARAM); > #ifdef FLOAT128 > float128 int32_to_float128( int_fast32_t STATUS_PARAM); > #endif > -float32 int64_to_float32( int64_t STATUS_PARAM); > -float32 uint64_to_float32( uint64_t STATUS_PARAM); > -float64 int64_to_float64( int64_t STATUS_PARAM); > -float64 uint64_to_float64( uint64_t v STATUS_PARAM); > +float32 int64_to_float32( int_fast64_t STATUS_PARAM); > +float32 uint64_to_float32( uint_fast64_t STATUS_PARAM); > +float64 int64_to_float64( int_fast64_t STATUS_PARAM); > +float64 uint64_to_float64( uint_fast64_t v STATUS_PARAM); > #ifdef FLOATX80 > -floatx80 int64_to_floatx80( int64_t STATUS_PARAM); > +floatx80 int64_to_floatx80( int_fast64_t STATUS_PARAM); > #endif > #ifdef FLOAT128 > -float128 int64_to_float128( int64_t STATUS_PARAM); > +float128 int64_to_float128( int_fast64_t STATUS_PARAM); > #endif > > /*---------------------------------------------------------------------------- > @@ -178,8 +178,8 @@ int_fast32_t float32_to_int32( float32 STATUS_PARAM); > int_fast32_t float32_to_int32_round_to_zero( float32 STATUS_PARAM); > uint_fast32_t float32_to_uint32( float32 a STATUS_PARAM); > uint_fast32_t float32_to_uint32_round_to_zero( float32 a STATUS_PARAM); > -int64_t float32_to_int64( float32 STATUS_PARAM); > -int64_t float32_to_int64_round_to_zero( float32 STATUS_PARAM); > +int_fast64_t float32_to_int64( float32 STATUS_PARAM); > +int_fast64_t float32_to_int64_round_to_zero( float32 STATUS_PARAM); > float64 float32_to_float64( float32 STATUS_PARAM); > #ifdef FLOATX80 > floatx80 float32_to_floatx80( float32 STATUS_PARAM); > @@ -283,10 +283,10 @@ int_fast32_t float64_to_int32( float64 STATUS_PARAM ); > int_fast32_t float64_to_int32_round_to_zero( float64 STATUS_PARAM ); > uint_fast32_t float64_to_uint32( float64 STATUS_PARAM ); > uint_fast32_t float64_to_uint32_round_to_zero( float64 STATUS_PARAM ); > -int64_t float64_to_int64( float64 STATUS_PARAM ); > -int64_t float64_to_int64_round_to_zero( float64 STATUS_PARAM ); > -uint64_t float64_to_uint64( float64 STATUS_PARAM ); > -uint64_t float64_to_uint64_round_to_zero( float64 STATUS_PARAM ); > +int_fast64_t float64_to_int64( float64 STATUS_PARAM ); > +int_fast64_t float64_to_int64_round_to_zero( float64 STATUS_PARAM ); > +uint_fast64_t float64_to_uint64( float64 STATUS_PARAM ); > +uint_fast64_t float64_to_uint64_round_to_zero( float64 STATUS_PARAM ); > float32 float64_to_float32( float64 STATUS_PARAM ); > #ifdef FLOATX80 > floatx80 float64_to_floatx80( float64 STATUS_PARAM ); > @@ -392,8 +392,8 @@ INLINE float64 float64_scalbn(float64 a, int n) > *----------------------------------------------------------------------------*/ > int_fast32_t floatx80_to_int32( floatx80 STATUS_PARAM ); > int_fast32_t floatx80_to_int32_round_to_zero( floatx80 STATUS_PARAM ); > -int64_t floatx80_to_int64( floatx80 STATUS_PARAM); > -int64_t floatx80_to_int64_round_to_zero( floatx80 STATUS_PARAM); > +int64_fast_t floatx80_to_int64( floatx80 STATUS_PARAM); > +int64_fast_t floatx80_to_int64_round_to_zero( floatx80 STATUS_PARAM); This type doesn't exist, so the code doesn't even compile... -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net