[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 10/10] softfloat: Use [u]int_fast64_t consist
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH v5 10/10] softfloat: Use [u]int_fast64_t consistently |
Date: |
Mon, 7 Mar 2011 10:56:35 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Mar 07, 2011 at 01:34:13AM +0100, Andreas Färber wrote:
> v5:
> * Initial.
>
> Signed-off-by: Andreas Färber <address@hidden>
> ---
> 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
address@hidden http://www.aurel32.net
- [Qemu-devel] [PATCH v5 01/10] [RESEND] softfloat: Prepend QEMU-style header with derivation notice, Andreas Färber, 2011/03/06
- [Qemu-devel] [PATCH v5 02/10] softfloat: Resolve type mismatches between declaration and implementation, Andreas Färber, 2011/03/06
- [Qemu-devel] [PATCH v5 03/10] softfloat: Drop [s]bits{8, 16, 32, 64} types in favor of [u]int{8, 16, 32, 64}_t, Andreas Färber, 2011/03/06
- [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t, Andreas Färber, 2011/03/06
- [Qemu-devel] [PATCH v5 05/10] softfloat: Use [u]int_fast16_t consistently, Andreas Färber, 2011/03/06
- [Qemu-devel] [PATCH v5 06/10] softfloat: Drop [u]int8 types in favor of int_fast8_t, Andreas Färber, 2011/03/06
- [Qemu-devel] [PATCH v5 07/10] softfloat: Drop [u]int32 types in favor of [u]int_fast32_t, Andreas Färber, 2011/03/06
- [Qemu-devel] [PATCH v5 08/10] softfloat: Use [u]int_fast32_t consistently, Andreas Färber, 2011/03/06
- [Qemu-devel] [PATCH v5 09/10] softfloat: Drop [u]int64 types in favor of [u]int_fast64_t, Andreas Färber, 2011/03/06
- [Qemu-devel] [PATCH v5 10/10] softfloat: Use [u]int_fast64_t consistently, Andreas Färber, 2011/03/06
- Re: [Qemu-devel] [PATCH v5 10/10] softfloat: Use [u]int_fast64_t consistently,
Aurelien Jarno <=
- Re: [Qemu-devel] [PATCH v5 10/10] softfloat: Use [u]int_fast64_t consistently, Andreas Färber, 2011/03/07
- Re: [Qemu-devel] [PATCH v5 10/10] softfloat: Use [u]int_fast64_t consistently, Aurelien Jarno, 2011/03/08
- Re: [Qemu-devel] [PATCH v5 07/10] softfloat: Drop [u]int32 types in favor of [u]int_fast32_t, Aurelien Jarno, 2011/03/07
- Re: [Qemu-devel] [PATCH v5 07/10] softfloat: Drop [u]int32 types in favor of [u]int_fast32_t, Andreas Färber, 2011/03/07
- Re: [Qemu-devel] [PATCH v5 07/10] softfloat: Drop [u]int32 types in favor of [u]int_fast32_t, Aurelien Jarno, 2011/03/07
- Re: [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t, Aurelien Jarno, 2011/03/07
- Re: [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t, Andreas Färber, 2011/03/07
- Re: [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t, Aurelien Jarno, 2011/03/07
- Re: [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t, Peter Maydell, 2011/03/07
- Re: [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t, Aurelien Jarno, 2011/03/07