From patchwork Fri Mar 14 18:38:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 26286 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 27976202DD for ; Fri, 14 Mar 2014 18:38:20 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf9926773iec.8 for ; Fri, 14 Mar 2014 11:38:19 -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:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=oetwtzTcU/1ZKZQpyXD3gRPotm0REDY2je3RwFPk58w=; b=KiSKPVF94NSJXpsQLCgWIA+/TYEudvEgJzq47S311oqQYKc318UzBtcQwUSsMYfnip gc1wFsCFpfaTg885yZKSxDmYEiwL+wTUbSNq+5qi5s4GFQxbzoOGtcZzA4S7VKsee9Au oWNQD4g6tFHAwy1jzyqMfnKDvZ/1F6owX8p0oMIfr2JVm/kYYppVDsrAz19CMxcj/DGx qb8MVpsEKqnxwyRGEo3ON0m/xna0dNH8FeuTWv4+cbepmMUElxAbbQ7ncrKoruSBGehk zwXTzzw5PgAbpgYSvrbqiIcjyx8ohEc9d4rMd6KA1Te7PmWyYhGo5CK36BRJPv3YtLrC zWwg== X-Gm-Message-State: ALoCoQmVlEuVyR+pf2c6edJv7SDJhjaV697dcc1EA7uIEcWLdOys96MFT4vC/PrbZQwi2u7lK3Wb X-Received: by 10.182.158.4 with SMTP id wq4mr3944791obb.18.1394822299624; Fri, 14 Mar 2014 11:38:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.17.3 with SMTP id 3ls84989qgc.83.gmail; Fri, 14 Mar 2014 11:38:19 -0700 (PDT) X-Received: by 10.52.120.6 with SMTP id ky6mr1199490vdb.38.1394822299526; Fri, 14 Mar 2014 11:38:19 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id ec3si2389753vcb.47.2014.03.14.11.38.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Mar 2014 11:38:19 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id oz11so3136656veb.33 for ; Fri, 14 Mar 2014 11:38:19 -0700 (PDT) X-Received: by 10.220.247.68 with SMTP id mb4mr430072vcb.37.1394822299420; Fri, 14 Mar 2014 11:38:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.78.9 with SMTP id i9csp43439vck; Fri, 14 Mar 2014 11:38:19 -0700 (PDT) X-Received: by 10.194.59.226 with SMTP id c2mr7822894wjr.6.1394822298603; Fri, 14 Mar 2014 11:38:18 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id be6si4830408wib.13.2014.03.14.11.38.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 14 Mar 2014 11:38:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WOWzn-0003t0-It; Fri, 14 Mar 2014 18:38:15 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Alexander Graf , Michael Matz , Dirk Mueller , Laurent Desnogues , kvmarm@lists.cs.columbia.edu, Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Christoffer Dall , Will Newton , Peter Crosthwaite Subject: [PATCH v2 19/25] softfloat: export squash_input_denormal functions Date: Fri, 14 Mar 2014 18:38:08 +0000 Message-Id: <1394822294-14837-20-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1394822294-14837-1-git-send-email-peter.maydell@linaro.org> References: <1394822294-14837-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 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.128.174 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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