From patchwork Mon May 14 22:11:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135766 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp191356lji; Mon, 14 May 2018 15:19:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpFWmS3V0V0IhdvQBGKfsc8KPgMlSvv0M4tZNq9O0+IF4uOW2Lm/BtuoMElpS5npI28bknc X-Received: by 2002:ae9:ed02:: with SMTP id c2-v6mr3342586qkg.111.1526336364022; Mon, 14 May 2018 15:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526336364; cv=none; d=google.com; s=arc-20160816; b=h6i0Q+X5rdkr7o+rwQ646VCxANZX4XIgN7FgJXy6VKE4b93Pdgs+zY9zK3G6VJv6ZB lXKow4PAy/zArTw0Dl4uwhHl0ihJczUOW5EwS3SzTRQ11VRx59PZFdlISeV3LclNiLro rknsTUExtoreaKlD2EGn2S05CBSno3/kdWc663Argg8BGlvSiQ2jFAOVD6JtrdnoNHDN f57tDCO3iWpzC4mb6zLcOqwMdXX/FCiM65LTYGLbHVJKe9EkLs5rSZczbq3uUTiq/wh7 mQWuLQEr2hrkvuC7D0m4M3P9RaBhk6unoQ6fW6A4rn8L+eOu4NVeQp8AQ3rdlk5Of/eJ yGhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=ebFxh3+eguD7gF5K8+FfZvuBwarnBxL0aNh5uRBWCAs=; b=Zv3hHi0eNo5vLGy5pdjAvAYgRpMrFJpvPjlHXXMyVra4jrgaPt6ZdvbwnGrEmq9w4k mZVcHn/gJmGJUGmBAhbZBOld0FZuye+YaDh+vSHNnkuKyD+x335Kl2YKD7AztA4JIwYP nrMYGozvtKg4TiaBsz5vHJQ8o3QtKxMUCca8YcyK5I4kmUWzPwA/hNjYEtTIXamMVbmh JaCf+r++yawDVxc2HkZ67oj1tO2qAQNlLI7EkWyA3lkL+YVn+4E4mzL98C7bI/Zb/0Di +STZAQ4gFe+tjCzURF/Xa86jJXdGJ67fvuAABF8ocRRZmsyp3Wp9Wq3P9XcgFCgqcHP1 S7Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cD6+Nu78; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o6-v6si6710593qvb.108.2018.05.14.15.19.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 14 May 2018 15:19:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cD6+Nu78; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILoR-0004EO-Br for patch@linaro.org; Mon, 14 May 2018 18:19:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILhl-0007oW-Vn for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fILhl-0007Qj-0K for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:29 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:33424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fILhk-0007Om-RG for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:28 -0400 Received: by mail-pg0-x244.google.com with SMTP id v7-v6so3276339pgs.0 for ; Mon, 14 May 2018 15:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ebFxh3+eguD7gF5K8+FfZvuBwarnBxL0aNh5uRBWCAs=; b=cD6+Nu783+P3CV39HIkihsJG14Lpep8gWzTnWD3crTjqZolahDVU1wfb74Z29WYqjS OGqaE1hwT7rYxjO//2TTGjmsryKwcpVXVaidiJfaVH3HlCbuy/Jw9+FXuXaSp7VM9Zpc 2rDWMVRyY5vbV0/2Ktt1maSyzg1ijdKqImdvg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ebFxh3+eguD7gF5K8+FfZvuBwarnBxL0aNh5uRBWCAs=; b=gmJbuwpDqG3prz69dE2i//iyps9APLS8BYl6iU8VuVytS05jMLWT5HcSLic1T5PxOD 9WfG87XY6lMujBjhazbWsrJvthGByAA9WpYVAER7MZwVU9PzxLa7vYqUYky1az5Sv+TZ h9uCNPNk+UZbl69W1CGb3CGbWrYwVt07+O3CL5AvAdJA0UlDBMeudv0M0jWG7BJIfvr+ hrH9dOv0J/tk0E2MBUxulQm7hqvSP5nG0jhMv4YE9uhYI9qCrwe5fXQIGBl5bgVfzdc3 d8+DD+VhSlcFX/z2N2jbRuN366JaoA2tNTmtyoGDCDTth4MzoPayh5GvQRRxuVoioUwy 5pBA== X-Gm-Message-State: ALKqPweJfcimnJ/fk/9Yr24seKORFFXKnAH5HgITAkPy8+UCz7x+C+yw KqD9kQceq/ZBlVIyoQC+BMRcZEYalGs= X-Received: by 2002:a62:3889:: with SMTP id f131-v6mr12184027pfa.173.1526335947560; Mon, 14 May 2018 15:12:27 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id y2-v6sm14512457pgp.92.2018.05.14.15.12.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 15:12:26 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 14 May 2018 15:11:55 -0700 Message-Id: <20180514221219.7091-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514221219.7091-1-richard.henderson@linaro.org> References: <20180514221219.7091-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::244 Subject: [Qemu-devel] [PATCH v5 04/28] fpu/softfloat: Move softfloat-specialize.h below FloatParts definition X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We want to be able to specialize on the canonical representation. Reviewed-by: Peter Maydell Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- fpu/softfloat.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) -- 2.17.0 diff --git a/fpu/softfloat.c b/fpu/softfloat.c index d07419324a..0d17027379 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -95,16 +95,6 @@ this code that are retained. *----------------------------------------------------------------------------*/ #include "fpu/softfloat-macros.h" -/*---------------------------------------------------------------------------- -| Functions and definitions to determine: (1) whether tininess for underflow -| is detected before or after rounding by default, (2) what (if anything) -| happens when exceptions are raised, (3) how signaling NaNs are distinguished -| from quiet NaNs, (4) the default generated quiet NaNs, and (5) how NaNs -| are propagated from function inputs to output. These details are target- -| specific. -*----------------------------------------------------------------------------*/ -#include "softfloat-specialize.h" - /*---------------------------------------------------------------------------- | Returns the fraction bits of the half-precision floating-point value `a'. *----------------------------------------------------------------------------*/ @@ -322,6 +312,16 @@ static inline float64 float64_pack_raw(FloatParts p) return make_float64(pack_raw(float64_params, p)); } +/*---------------------------------------------------------------------------- +| Functions and definitions to determine: (1) whether tininess for underflow +| is detected before or after rounding by default, (2) what (if anything) +| happens when exceptions are raised, (3) how signaling NaNs are distinguished +| from quiet NaNs, (4) the default generated quiet NaNs, and (5) how NaNs +| are propagated from function inputs to output. These details are target- +| specific. +*----------------------------------------------------------------------------*/ +#include "softfloat-specialize.h" + /* Canonicalize EXP and FRAC, setting CLS. */ static FloatParts canonicalize(FloatParts part, const FloatFmt *parm, float_status *status)