From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qxk2B-00047r-L0 for qemu-devel@nongnu.org; Sun, 28 Aug 2011 14:24:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qxk29-0005ap-IJ for qemu-devel@nongnu.org; Sun, 28 Aug 2011 14:24:39 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:56470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qxk29-0005ae-7T for qemu-devel@nongnu.org; Sun, 28 Aug 2011 14:24:37 -0400 Received: from smtp03.web.de ( [172.20.0.65]) by fmmailgate03.web.de (Postfix) with ESMTP id 4009E19800F0C for ; Sun, 28 Aug 2011 20:24:36 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sun, 28 Aug 2011 20:24:34 +0200 Message-Id: <1314555874-53111-2-git-send-email-andreas.faerber@web.de> In-Reply-To: <1314555874-53111-1-git-send-email-andreas.faerber@web.de> References: <831953E7-D895-4C27-A61D-D7F5E91B667B@web.de> <1314555874-53111-1-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 2/2] softfloat: Use uint32 consistently List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= Prepares for uint32 replacement. Signed-off-by: Andreas F=C3=A4rber --- fpu/softfloat.c | 20 ++++++++++---------- fpu/softfloat.h | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index be1206d..2b20085 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -5965,20 +5965,20 @@ int float128_unordered_quiet( float128 a, float12= 8 b STATUS_PARAM ) } =20 /* misc functions */ -float32 uint32_to_float32( unsigned int a STATUS_PARAM ) +float32 uint32_to_float32( uint32 a STATUS_PARAM ) { return int64_to_float32(a STATUS_VAR); } =20 -float64 uint32_to_float64( unsigned int a STATUS_PARAM ) +float64 uint32_to_float64( uint32 a STATUS_PARAM ) { return int64_to_float64(a STATUS_VAR); } =20 -unsigned int float32_to_uint32( float32 a STATUS_PARAM ) +uint32 float32_to_uint32( float32 a STATUS_PARAM ) { int64_t v; - unsigned int res; + uint32 res; =20 v =3D float32_to_int64(a STATUS_VAR); if (v < 0) { @@ -5993,10 +5993,10 @@ unsigned int float32_to_uint32( float32 a STATUS_= PARAM ) return res; } =20 -unsigned int float32_to_uint32_round_to_zero( float32 a STATUS_PARAM ) +uint32 float32_to_uint32_round_to_zero( float32 a STATUS_PARAM ) { int64_t v; - unsigned int res; + uint32 res; =20 v =3D float32_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { @@ -6029,10 +6029,10 @@ uint16 float32_to_uint16_round_to_zero( float32 a= STATUS_PARAM ) return res; } =20 -unsigned int float64_to_uint32( float64 a STATUS_PARAM ) +uint32 float64_to_uint32( float64 a STATUS_PARAM ) { int64_t v; - unsigned int res; + uint32 res; =20 v =3D float64_to_int64(a STATUS_VAR); if (v < 0) { @@ -6047,10 +6047,10 @@ unsigned int float64_to_uint32( float64 a STATUS_= PARAM ) return res; } =20 -unsigned int float64_to_uint32_round_to_zero( float64 a STATUS_PARAM ) +uint32 float64_to_uint32_round_to_zero( float64 a STATUS_PARAM ) { int64_t v; - unsigned int res; + uint32 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 e1bbe01..618ddee 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -216,8 +216,8 @@ void float_raise( int8 flags 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 ); +float32 uint32_to_float32( uint32 STATUS_PARAM ); +float64 uint32_to_float64( uint32 STATUS_PARAM ); floatx80 int32_to_floatx80( int32 STATUS_PARAM ); float128 int32_to_float128( int32 STATUS_PARAM ); float32 int64_to_float32( int64 STATUS_PARAM ); --=20 1.7.5.3