Received: from [140.186.70.92] (port=40011 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwOP0-0005mo-SO for qemu-devel@nongnu.org; Sun, 06 Mar 2011 19:34:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwOOz-0000ts-Ga for qemu-devel@nongnu.org; Sun, 06 Mar 2011 19:34:22 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:41937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwOOy-0000te-Jy for qemu-devel@nongnu.org; Sun, 06 Mar 2011 19:34:21 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 7 Mar 2011 01:34:08 +0100 Message-Id: <1299458053-69428-5-git-send-email-andreas.faerber@web.de> In-Reply-To: <1299458053-69428-4-git-send-email-andreas.faerber@web.de> References: <1294169951-5153-5-git-send-email-andreas.faerber@web.de> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v5 05/10] softfloat: Use [u]int_fast16_t consistently List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Nathan Froyd 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 Cc: Nathan Froyd Signed-off-by: Andreas F=C3=A4rber --- 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( flo= at32 a STATUS_PARAM ) return res; } =20 -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; =20 v =3D float32_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { @@ -5919,10 +5919,10 @@ unsigned int float64_to_uint32_round_to_zero( flo= at64 a STATUS_PARAM ) return res; } =20 -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; =20 v =3D 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 ); --=20 1.7.3.4