From patchwork Sat Jun 21 19:35:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 362470 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 0F7E2140091 for ; Sun, 22 Jun 2014 05:35:54 +1000 (EST) Received: from localhost ([::1]:46236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyR4p-0006La-Vs for incoming@patchwork.ozlabs.org; Sat, 21 Jun 2014 15:35:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyR4b-000652-GO for qemu-devel@nongnu.org; Sat, 21 Jun 2014 15:35:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyR4a-0001iw-Cx for qemu-devel@nongnu.org; Sat, 21 Jun 2014 15:35:37 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:101::1]:55874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyR4a-0001iI-6l for qemu-devel@nongnu.org; Sat, 21 Jun 2014 15:35:36 -0400 Received: from [2001:470:d4ed:0:ea11:32ff:fea1:831a] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1WyR4X-0000fu-DL; Sat, 21 Jun 2014 21:35:33 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.80) (envelope-from ) id 1WyR4V-0003lN-TU; Sat, 21 Jun 2014 21:35:31 +0200 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Sat, 21 Jun 2014 21:35:31 +0200 Message-Id: <1403379331-14433-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:bc8:30d7:101::1 Cc: Peter Maydell , Aurelien Jarno Subject: [Qemu-devel] [PATCH] 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 --- fpu/softfloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index e00a6fb..3b19736 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -3209,7 +3209,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 STATUS_PARAM) { int maxexp = ieee ? 29 : 30;