From patchwork Sat May 12 00:42:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135594 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1570296lji; Fri, 11 May 2018 17:52:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo8bhRgqEnOPrgNnOhThOdAhXlB+us4XK0qSlp6RzvmGc5HiE9RWcPSMJ1BDu0bZrVRyaCi X-Received: by 2002:a37:6dc7:: with SMTP id i190-v6mr253685qkc.114.1526086347044; Fri, 11 May 2018 17:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526086347; cv=none; d=google.com; s=arc-20160816; b=AAX4otjms+uYOgoyvNZd4WjSe6h00CT8lqZoj23CRZMjflq0Sljz1lZP7b3951M3qA hr7tSt1EZJCy3h2Rp9iXUbRAiKFhyOIIu1eCJfmcHQ6rYp/7UYEzx1eq36AFzixc61n6 /viFI2TzHHtFD3SMxoUsjfvbb1mq0ImpXEebtfwKFnWLfIpSNPQwg8GJqFto7NOHkP5N HYwKSnG6lZZU8zLOciHg+zNXQ7UeDdaIKciE8M/PJ9Yg8YRpI2mzqlyWJMdwhD8YcjSt pOVacEe13f67Fuv9fiAsnQsiloWXJf5CSU3uLAQP+wW3ZljnU/bDzhdqH+apsA7u+Tbm HbHA== 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=bj0SU2URDht9Dhe8cutfZ1E2pyq7Q2wMRVRXIokhUS0=; b=yUs++d2nHki3P77Ik31Yv+z8odug3hHWxA2bi9J9SSkItCtAj+Xwy9JBjThBmxTQ4Y 0JJrTDIpd9rQrDvMMJedora1Svh8J7f5eNiLWs7628S5K7CNjx4RNZXRLedUSdht75CI R989sM/Z7X+e6FHNsfLcLKUQMPHwrkC/UcKQP8d3xq8gs7TxfHWhw4Nwo8N+YY6hn3uy tbIzmxG3Jia0Y3ZJ7mQ+aGKSk3OTv422WEGZx2J3apeR0v6GhexMKSbS0qIgs+xMLPAY gZnHnSw/JPnIL3wTNHG5qTrprAneIrj8qHQBcDzcKqGx3WFyH45nLRlqc7ne8WDIvpWv rdPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OOKiieG6; 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 p45-v6si4049265qvp.73.2018.05.11.17.52.26 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 17:52:27 -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=OOKiieG6; 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]:59300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIlu-0005yF-FP for patch@linaro.org; Fri, 11 May 2018 20:52:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdB-0004E3-1d for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHId9-0002pw-7N for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:25 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:34996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHId9-0002pb-2R for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:23 -0400 Received: by mail-pg0-x244.google.com with SMTP id n1-v6so3086407pgs.2 for ; Fri, 11 May 2018 17:43:22 -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=bj0SU2URDht9Dhe8cutfZ1E2pyq7Q2wMRVRXIokhUS0=; b=OOKiieG6ZvBC/aGMDOHvBLZvM4/iyOHfplC+zuObTOUsAXx62aHil2wsTCEMHMO1vA pOPPTzAAUnEfRhc6YP3j2vw3TBBtjD1SGuFiMYpq/B02EwFvJyBP5HWiz3dMtFk8/e53 jX8Puo3Iu9pomUgfCDBNZeNjmRfgLzYI1xE1s= 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=bj0SU2URDht9Dhe8cutfZ1E2pyq7Q2wMRVRXIokhUS0=; b=lcw4dUgYrCugrMA1qG807z3/Ng+ZEJ0jWT9HEyhYxFPh4z2oEz8chvD04D0pYAkoEF 7KoDYX/ekngCVree3rGlvTDONiKunrtU0ZTivPrrXM/zCMT+5I1Bc1I59vhRQ4MB0K/F ododam1t0IFlCnsdpLVZPcDPyvKXJIOkqHN2cZ1ioLYZTxIMn0Hcyu13zNps8BRCOp7K ZUgxaUI9qJPWaYn68+Fnpv9cqAOa+DRRcSVSRxa7flcrQMYnu8q8gLsFcBjoYm5SH0RZ PCKa+KKPFF/oav88IlmunKjhV7zhA7ZJQ4UW+DYhBD/aE2mjQjSuMYD33zYUh76aFm/H B2Bw== X-Gm-Message-State: ALKqPwcCGJpBl2M2mGd/W+m5ucLq4glr7+eYKp8nN5OlK8qFMQGiUq6q K2qYwCoc1T1ugChZtlyJKqMOdh0zp08= X-Received: by 2002:a65:520c:: with SMTP id o12-v6mr991043pgp.178.1526085801111; Fri, 11 May 2018 17:43:21 -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 k84-v6sm10756406pfh.93.2018.05.11.17.43.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:43:20 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:42:49 -0700 Message-Id: <20180512004311.9299-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180512004311.9299-1-richard.henderson@linaro.org> References: <20180512004311.9299-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 v2 05/27] 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: Alex Bennée Signed-off-by: Richard Henderson --- fpu/softfloat.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) -- 2.17.0 Reviewed-by: Peter Maydell diff --git a/fpu/softfloat.c b/fpu/softfloat.c index bc0f52fa54..353893aaea 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'. *----------------------------------------------------------------------------*/ @@ -247,6 +237,16 @@ typedef struct { uint64_t roundeven_mask; } FloatFmt; +/*---------------------------------------------------------------------------- +| 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" + /* Expand fields based on the size of exponent and fraction */ #define FLOAT_PARAMS(E, F) \ .exp_size = E, \