From patchwork Mon Feb 21 16:38:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 83854 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E8D8FB6EEC for ; Tue, 22 Feb 2011 03:41:54 +1100 (EST) Received: from localhost ([127.0.0.1]:48955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrYpS-0007lN-VY for incoming@patchwork.ozlabs.org; Mon, 21 Feb 2011 11:41:43 -0500 Received: from [140.186.70.92] (port=44834 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrYmm-0006ZD-HB for qemu-devel@nongnu.org; Mon, 21 Feb 2011 11:38:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrYml-0005Ny-81 for qemu-devel@nongnu.org; Mon, 21 Feb 2011 11:38:56 -0500 Received: from eu1sys200aog118.obsmtp.com ([207.126.144.145]:42231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrYmk-0005Nf-To for qemu-devel@nongnu.org; Mon, 21 Feb 2011 11:38:55 -0500 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob118.postini.com ([207.126.147.11]) with SMTP ID DSNKTWKVHWr8CFvcpbV/NXKxCmIui2Yx8b+8@postini.com; Mon, 21 Feb 2011 16:38:54 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1E6A837C for ; Mon, 21 Feb 2011 16:38:52 +0000 (GMT) Received: from Webmail-eu.st.com (safex1hubcas6.st.com [10.75.90.73]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D95D54D01 for ; Mon, 21 Feb 2011 16:38:52 +0000 (GMT) Received: from localhost.localdomain (164.129.122.40) by webmail-eu.st.com (10.75.90.13) with Microsoft SMTP Server (TLS) id 8.2.234.1; Mon, 21 Feb 2011 17:38:51 +0100 From: Christophe Lyon To: Date: Mon, 21 Feb 2011 17:38:46 +0100 Message-ID: <1298306328-25643-4-git-send-email-christophe.lyon@st.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1298306328-25643-1-git-send-email-christophe.lyon@st.com> References: <1298306328-25643-1-git-send-email-christophe.lyon@st.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 207.126.144.145 Subject: [Qemu-devel] [PATCH 3/5] target-arm: Introduce float64_256 and float64_512 constants. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org These two constants will be used by helper functions such as recpe_f32 and rsqrte_f32. Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell --- target-arm/helper.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 7f63a28..30c1809 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2687,6 +2687,11 @@ float32 HELPER(rsqrts_f32)(float32 a, float32 b, CPUState *env) /* NEON helpers. */ +/* Constants 256 and 512 are used in some helpers; we avoid relying on + * int->float conversions at run-time. */ +#define float64_256 make_float64(0x4070000000000000LL) +#define float64_512 make_float64(0x4080000000000000LL) + /* TODO: The architecture specifies the value that the estimate functions should return. We return the exact reciprocal/root instead. */ float32 HELPER(recpe_f32)(float32 a, CPUState *env)