From patchwork Tue Sep 11 18:47:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 183168 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E3F602C0088 for ; Wed, 12 Sep 2012 04:49:23 +1000 (EST) Received: from localhost ([::1]:52662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBVWU-0001Pr-17 for incoming@patchwork.ozlabs.org; Tue, 11 Sep 2012 14:49:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBVVw-0000CO-Om for qemu-devel@nongnu.org; Tue, 11 Sep 2012 14:48:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBVVv-0003bv-I2 for qemu-devel@nongnu.org; Tue, 11 Sep 2012 14:48:48 -0400 Received: from hall.aurel32.net ([88.191.126.93]:35012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBVVv-0003bf-9p for qemu-devel@nongnu.org; Tue, 11 Sep 2012 14:48:47 -0400 Received: from [37.160.28.118] (helo=ohm.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TBVVr-0002EQ-JY; Tue, 11 Sep 2012 20:48:43 +0200 Received: from aurel32 by ohm.aurel32.net with local (Exim 4.80) (envelope-from ) id 1TBVUV-0002Rg-J8; Tue, 11 Sep 2012 20:47:19 +0200 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Tue, 11 Sep 2012 20:47:09 +0200 Message-Id: <1347389233-9068-2-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1347389233-9068-1-git-send-email-aurelien@aurel32.net> References: <1347389233-9068-1-git-send-email-aurelien@aurel32.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 88.191.126.93 Cc: Max Filippov , Alexander Graf , Peter Maydell Subject: [Qemu-devel] [PATCH v2 1/5] softfloat: make float_muladd_negate_* flags independent 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 From: Max Filippov Flags passed into float{32,64}_muladd are treated as bits; assign independent bits to float_muladd_negate_* to allow precise control over what gets negated in float{32,64}_muladd. Cc: Alexander Graf Cc: Peter Maydell Reviewed-by: Aurelien Jarno Signed-off-by: Max Filippov --- fpu/softfloat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpu/softfloat.h b/fpu/softfloat.h index feec3a1..2860ca0 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -219,7 +219,7 @@ void float_raise( int8 flags STATUS_PARAM); enum { float_muladd_negate_c = 1, float_muladd_negate_product = 2, - float_muladd_negate_result = 3, + float_muladd_negate_result = 4, }; /*----------------------------------------------------------------------------