[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 05/10] softfloat: Use [u]int_fast16_t consistentl
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH v5 05/10] softfloat: Use [u]int_fast16_t consistently |
Date: |
Mon, 7 Mar 2011 01:34:08 +0100 |
Adapt float{32,64}_to_uint16_round_to_zero().
v5:
* Reworded.
v3:
* Split off. Use uint_fast16_t rather than uint16_t.
v2:
* Initial.
Cc: Peter Maydell <address@hidden>
Cc: Nathan Froyd <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
fpu/softfloat.c | 8 ++++----
fpu/softfloat.h | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index befd400..4e23511 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -5865,10 +5865,10 @@ unsigned int float32_to_uint32_round_to_zero( float32 a
STATUS_PARAM )
return res;
}
-unsigned int float32_to_uint16_round_to_zero( float32 a STATUS_PARAM )
+uint_fast16_t float32_to_uint16_round_to_zero( float32 a STATUS_PARAM )
{
int64_t v;
- unsigned int res;
+ uint_fast16_t res;
v = float32_to_int64_round_to_zero(a STATUS_VAR);
if (v < 0) {
@@ -5919,10 +5919,10 @@ unsigned int float64_to_uint32_round_to_zero( float64 a
STATUS_PARAM )
return res;
}
-unsigned int float64_to_uint16_round_to_zero( float64 a STATUS_PARAM )
+uint_fast16_t float64_to_uint16_round_to_zero( float64 a STATUS_PARAM )
{
int64_t v;
- unsigned int res;
+ uint_fast16_t res;
v = float64_to_int64_round_to_zero(a STATUS_VAR);
if (v < 0) {
diff --git a/fpu/softfloat.h b/fpu/softfloat.h
index f98e50c..795c2ea 100644
--- a/fpu/softfloat.h
+++ b/fpu/softfloat.h
@@ -285,7 +285,7 @@ float16 float16_maybe_silence_nan( float16 );
| Software IEC/IEEE single-precision conversion routines.
*----------------------------------------------------------------------------*/
int_fast16_t float32_to_int16_round_to_zero( float32 STATUS_PARAM );
-unsigned int float32_to_uint16_round_to_zero( float32 STATUS_PARAM );
+uint_fast16_t float32_to_uint16_round_to_zero( float32 STATUS_PARAM );
int32 float32_to_int32( float32 STATUS_PARAM );
int32 float32_to_int32_round_to_zero( float32 STATUS_PARAM );
uint32 float32_to_uint32( float32 STATUS_PARAM );
@@ -395,7 +395,7 @@ INLINE float32 float32_set_sign(float32 a, int sign)
| Software IEC/IEEE double-precision conversion routines.
*----------------------------------------------------------------------------*/
int_fast16_t float64_to_int16_round_to_zero( float64 STATUS_PARAM );
-unsigned int float64_to_uint16_round_to_zero( float64 STATUS_PARAM );
+uint_fast16_t float64_to_uint16_round_to_zero( float64 STATUS_PARAM );
int32 float64_to_int32( float64 STATUS_PARAM );
int32 float64_to_int32_round_to_zero( float64 STATUS_PARAM );
uint32 float64_to_uint32( float64 STATUS_PARAM );
--
1.7.3.4
- [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 <=
- [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, 2011/03/07
- 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