[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 4/7] softfloat: Resolve type mismatches betwe
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH v3 4/7] softfloat: Resolve type mismatches between declaration and implementation |
Date: |
Sun, 19 Dec 2010 11:28:17 +0000 |
On Sat, Dec 18, 2010 at 4:25 PM, Andreas Färber <address@hidden> wrote:
> The original SoftFloat 2.0b library avoided the use of custom integer types
> in its public headers. This requires the definitions of int{8,16,32,64} to
> match the assumptions in the declarations. This breaks on BeOS R5 and
> Haiku/x86,
> where int32 is defined in {be,os}/support/SupportDefs.h in terms of a long
> rather than an int. Spotted by Michael Lotz.
>
> Since QEMU already breaks this distinction by defining those types just above,
> do use them for consistency and to allow #ifndef'ing them out as done for
> [u]int16 on AIX.
>
> Note that the BeOS/Haiku types are exact-width types though.
>
> v3:
> * Split off as intermediate step.
>
> v2:
> * Rebased.
>
> Cc: Michael Lotz <address@hidden>
> Cc: Peter Maydell <address@hidden>
> Signed-off-by: Andreas Färber <address@hidden>
> ---
> fpu/softfloat.h | 68 +++++++++++++++++++++++++++---------------------------
> 1 files changed, 34 insertions(+), 34 deletions(-)
>
> diff --git a/fpu/softfloat.h b/fpu/softfloat.h
> index 1c1004d..c62e769 100644
> --- a/fpu/softfloat.h
> +++ b/fpu/softfloat.h
> @@ -221,25 +221,25 @@ void float_raise( int8 flags STATUS_PARAM);
>
> /*----------------------------------------------------------------------------
> | Software IEC/IEEE integer-to-floating-point conversion routines.
>
> *----------------------------------------------------------------------------*/
> -float32 int32_to_float32( int STATUS_PARAM );
> -float64 int32_to_float64( int STATUS_PARAM );
> +float32 int32_to_float32( int32 STATUS_PARAM );
> +float64 int32_to_float64( int32 STATUS_PARAM );
> float32 uint32_to_float32( unsigned int STATUS_PARAM );
> float64 uint32_to_float64( unsigned int STATUS_PARAM );
Shouldn't these use uint32 as well?
- [Qemu-devel] [PATCH] softfloat: Fix function signature mismatches by using POSIX integer types, Andreas Färber, 2010/12/17
- [Qemu-devel] [PATCH v2] softfloat: Fix function signature mismatches by using POSIX integer types, Andreas Färber, 2010/12/17
- [Qemu-devel] [PATCH v3 1/7] apic: Don't use SoftFloat uint32 type, Andreas Färber, 2010/12/18
- [Qemu-devel] [PATCH v3 2/7] wdt_ib700: Don't use SoftFloat int64 type, Andreas Färber, 2010/12/18
- [Qemu-devel] [PATCH v3 3/7] target-i386: Don't use SoftFloat uint64 type, Andreas Färber, 2010/12/18
- [Qemu-devel] [PATCH v3 4/7] softfloat: Resolve type mismatches between declaration and implementation, Andreas Färber, 2010/12/18
- [Qemu-devel] [PATCH v3 5/7] softfloat: Drop [s]bits{8, 16, 32, 64} types in favor of [u]int{8, 16, 32, 64}_t, Andreas Färber, 2010/12/18
- [Qemu-devel] [PATCH v3 6/7] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t, Andreas Färber, 2010/12/18
- [Qemu-devel] [PATCH v3 7/7] softfloat: Make float{32, 64}_to_uint16_round_to_zero() use uint_fast16_t, Andreas Färber, 2010/12/18
- Re: [Qemu-devel] [PATCH v3 4/7] softfloat: Resolve type mismatches between declaration and implementation,
Blue Swirl <=
- Re: [Qemu-devel] [PATCH v3 4/7] softfloat: Resolve type mismatches between declaration and implementation, Andreas Färber, 2010/12/19
- [Qemu-devel] Re: [PATCH v3 3/7] target-i386: Don't use SoftFloat uint64 type, Juan Quintela, 2010/12/18
- [Qemu-devel] Re: [PATCH v3 3/7] target-i386: Don't use SoftFloat uint64 type, Huang Ying, 2010/12/19
- [Qemu-devel] Re: [PATCH v3 2/7] wdt_ib700: Don't use SoftFloat int64 type, Richard W.M. Jones, 2010/12/18
- Re: [Qemu-devel] Re: [PATCH v3 2/7] wdt_ib700: Don't use SoftFloat int64 type, Andreas Färber, 2010/12/19
- Re: [Qemu-devel] Re: [PATCH v3 2/7] wdt_ib700: Don't use SoftFloat int64 type, Richard W.M. Jones, 2010/12/19
- Re: [Qemu-devel] Re: [PATCH v3 2/7] wdt_ib700: Don't use SoftFloat int64 type, Andreas Färber, 2010/12/19
- Re: [Qemu-devel] Re: [PATCH v3 2/7] wdt_ib700: Don't use SoftFloat int64 type, Blue Swirl, 2010/12/19
- Re: [Qemu-devel] Re: [PATCH v3 2/7] wdt_ib700: Don't use SoftFloat int64 type, Andreas Färber, 2010/12/19
- Re: [Qemu-devel] Re: [PATCH v3 2/7] wdt_ib700: Don't use SoftFloat int64 type, Blue Swirl, 2010/12/19