From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJNti-0002X9-Qv for qemu-devel@nongnu.org; Wed, 13 Jan 2016 11:03:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJNti-0008Va-3U for qemu-devel@nongnu.org; Wed, 13 Jan 2016 11:03:46 -0500 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]:52804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJNth-0008VS-TJ for qemu-devel@nongnu.org; Wed, 13 Jan 2016 11:03:46 -0500 From: Aurelien Jarno Date: Wed, 13 Jan 2016 17:03:13 +0100 Message-Id: <1452700993-6570-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH RESEND] softfloat: fix return type of roundAndPackFloat16 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Aurelien Jarno The roundAndPackFloat16 function should return a float16 value, not a float32 one. Fix that. Cc: Peter Maydell Signed-off-by: Aurelien Jarno --- fpu/softfloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Peter, given you are working on softfloat patches, you might want to get this one merged at the same time. diff --git a/fpu/softfloat.c b/fpu/softfloat.c index f1170fe..acc9099 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -3368,7 +3368,7 @@ static float16 packFloat16(flag zSign, int_fast16_t zExp, uint16_t zSig) | Binary Floating-Point Arithmetic. *----------------------------------------------------------------------------*/ -static float32 roundAndPackFloat16(flag zSign, int_fast16_t zExp, +static float16 roundAndPackFloat16(flag zSign, int_fast16_t zExp, uint32_t zSig, flag ieee, float_status *status) { -- 2.1.4