From patchwork Mon Mar 17 22:12:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 26444 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4E5A4202FA for ; Mon, 17 Mar 2014 23:38:31 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id cz12sf15318756veb.2 for ; Mon, 17 Mar 2014 16:38:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=YCnO5k0ZYwPLK8jf1spqypE7k4efUS+MlmVTFHj4bq0=; b=fW1Vg2IaTjMhyqjGGYanRnbIZeR8hAC8KUKaPkybGMIA7781PZclHGBGhVn/pOiwne XCQolC9OHcOsi8lfGfMVI3mGEfGBmHePHSIqUfB+CIw8t4q+dyyy5m4bov/AhEJBwjdZ dQU6F9Bm6lLejVksroKp9+vxYi/Y7raW7BhCpockBd3TgfUtxMQiGOHZ+rFId0R93IgT e7FaryRO/9gMrEr0XYmD1PM2msnDq+gOQshY3LSzm4MItzSyV6//Q3CK7h7/PcjL5/j3 CfV2PjZLTdAao17k9VOlpDR0pIZm1nQzYpsCJ8RKGNmD5E4/WtH1/gEzcE7CdTN1uHP4 ObLw== X-Gm-Message-State: ALoCoQkTrdJK8Eow/6g4ekq9vHiSY4jVgtJBFD6vFAVNfGpXTTTqNNdndeHJ05oGcVxgCFD1fHJF X-Received: by 10.236.191.136 with SMTP id g8mr8237687yhn.48.1395099510806; Mon, 17 Mar 2014 16:38:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.11 with SMTP id w11ls1841428qgw.42.gmail; Mon, 17 Mar 2014 16:38:30 -0700 (PDT) X-Received: by 10.220.225.5 with SMTP id iq5mr44436vcb.42.1395099510724; Mon, 17 Mar 2014 16:38:30 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id vd8si2189452vdc.196.2014.03.17.16.38.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 16:38:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so6478497vcb.16 for ; Mon, 17 Mar 2014 16:38:30 -0700 (PDT) X-Received: by 10.52.51.226 with SMTP id n2mr19073vdo.57.1395099510602; Mon, 17 Mar 2014 16:38:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp163097vck; Mon, 17 Mar 2014 16:38:30 -0700 (PDT) X-Received: by 10.229.112.5 with SMTP id u5mr31943089qcp.3.1395099510048; Mon, 17 Mar 2014 16:38:30 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id q9si4490702qag.118.2014.03.17.16.38.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 17 Mar 2014 16:38:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Received: from localhost ([::1]:60598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPfqR-0001m7-R3 for patch@linaro.org; Mon, 17 Mar 2014 18:17:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPfmK-0004Yu-OD for qemu-devel@nongnu.org; Mon, 17 Mar 2014 18:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPfmJ-0007Td-MI for qemu-devel@nongnu.org; Mon, 17 Mar 2014 18:13:04 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:46921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPfmJ-0007Pr-Fu for qemu-devel@nongnu.org; Mon, 17 Mar 2014 18:13:03 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WPfle-00053w-6U; Mon, 17 Mar 2014 22:12:22 +0000 From: Peter Maydell To: Anthony Liguori Date: Mon, 17 Mar 2014 22:12:15 +0000 Message-Id: <1395094341-19339-25-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395094341-19339-1-git-send-email-peter.maydell@linaro.org> References: <1395094341-19339-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: Blue Swirl , =?UTF-8?q?Andreas=20F=C3=A4rber?= , qemu-devel@nongnu.org, Aurelien Jarno Subject: [Qemu-devel] [PULL 24/30] softfloat: export squash_input_denormal functions 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Alex Bennée I need these available outside of softfloat for some of the reciprocal processing in aarch64 helper functions. Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 1394822294-14837-20-git-send-email-peter.maydell@linaro.org --- fpu/softfloat.c | 4 ++-- include/fpu/softfloat.h | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index fc0b179..5f02c16 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -288,7 +288,7 @@ INLINE flag extractFloat32Sign( float32 a ) | If `a' is denormal and we are in flush-to-zero mode then set the | input-denormal exception and return zero. Otherwise just return the value. *----------------------------------------------------------------------------*/ -static float32 float32_squash_input_denormal(float32 a STATUS_PARAM) +float32 float32_squash_input_denormal(float32 a STATUS_PARAM) { if (STATUS(flush_inputs_to_zero)) { if (extractFloat32Exp(a) == 0 && extractFloat32Frac(a) != 0) { @@ -473,7 +473,7 @@ INLINE flag extractFloat64Sign( float64 a ) | If `a' is denormal and we are in flush-to-zero mode then set the | input-denormal exception and return zero. Otherwise just return the value. *----------------------------------------------------------------------------*/ -static float64 float64_squash_input_denormal(float64 a STATUS_PARAM) +float64 float64_squash_input_denormal(float64 a STATUS_PARAM) { if (STATUS(flush_inputs_to_zero)) { if (extractFloat64Exp(a) == 0 && extractFloat64Frac(a) != 0) { diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 4b4df88..db878c1 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -245,6 +245,13 @@ INLINE flag get_default_nan_mode(float_status *status) void float_raise( int8 flags STATUS_PARAM); /*---------------------------------------------------------------------------- +| If `a' is denormal and we are in flush-to-zero mode then set the +| input-denormal exception and return zero. Otherwise just return the value. +*----------------------------------------------------------------------------*/ +float32 float32_squash_input_denormal(float32 a STATUS_PARAM); +float64 float64_squash_input_denormal(float64 a STATUS_PARAM); + +/*---------------------------------------------------------------------------- | Options to indicate which negations to perform in float*_muladd() | Using these differs from negating an input or output before calling | the muladd function in that this means that a NaN doesn't have its