From patchwork Wed Jan 13 16:03:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 567040 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7487914032F for ; Thu, 14 Jan 2016 03:04:09 +1100 (AEDT) Received: from localhost ([::1]:37923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJNu3-00039Y-Gx for incoming@patchwork.ozlabs.org; Wed, 13 Jan 2016 11:04:07 -0500 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 Received: from ohm.aurel32.net ([2001:bc8:30d7:111::1000]) by hall.aurel32.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1aJNth-00065b-77; Wed, 13 Jan 2016 17:03:45 +0100 Received: from aurel32 by ohm.aurel32.net with local (Exim 4.84) (envelope-from ) id 1aJNtg-0001j6-Pi; Wed, 13 Jan 2016 17:03:44 +0100 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Wed, 13 Jan 2016 17:03:13 +0100 Message-Id: <1452700993-6570-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:bc8:30d7:100::1 Cc: Peter Maydell , Aurelien Jarno Subject: [Qemu-devel] [PATCH RESEND] softfloat: fix return type of roundAndPackFloat16 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The roundAndPackFloat16 function should return a float16 value, not a float32 one. Fix that. Cc: Peter Maydell Signed-off-by: Aurelien Jarno Reviewed-by: Peter Maydell --- 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) {