From patchwork Wed May 16 15:52:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136020 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1109634lji; Wed, 16 May 2018 09:02:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr31Igyk1ji1kLtOas5Rcr3PGAp759XWYHFKuimrmx7tQ6bcVZsNCWWGz3ky4UH/DZWbpnu X-Received: by 2002:a37:b002:: with SMTP id z2-v6mr1396832qke.222.1526486553628; Wed, 16 May 2018 09:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526486553; cv=none; d=google.com; s=arc-20160816; b=bOMvj6hacNrT0ilNBto/P6jTwC7f9BlDhGXpA7DQNlMLUOcgRfeP5jfdKMYiEnKzVW IPm6Y1gy0noVw6BIrmgQfmtiPONKgX0ZDrGgH0Hn2v+AnBK2djWA4BTLjfawq4vFJZxA dQvH2/CKv0FeON7hYIW0jMG02dgvYlUAEJvhlsStCPFWOmhTSGlAXS2c6B1ZoqDG7QLB R5dbJCsmcfnGeVXehraMi/7P8mOhXvxzQPGwBcCIXbmPA5a97khTVod2OehSFSLRJAig c/gj8dCqU/8TYlw9RY6147HraA7BBOMoWh2LY7QUrd0+QuH5SieY4WchHYsJjwqVuhb8 QnRw== 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=X0O0oscg2DXfZxWsZs+cPbi2oDfigSQN1qMljqBQmYE=; b=AyjlkueUxFkLB+R1EUfSW0/w/zPobuIpBEm9sFlydakSxayJ13KXyx4QhDi4D0uvoo 1e72vllzc6L+B5TsIMAQd0FYjWsPb+hNAgN5L1Eo0F+c8A+05hUFXKQP4SXiyDHWvPEn RZsT2f7F4p/OmsqINTe22oaeXrGot8kmjWIljqwVSggpnqsj070Nplcc7oyPuW0USe+Y GJOnumrglk3CzERunC1gblSTKwA70PQ6+vWHkmifRcMOtzibS1AMMwsSrKi9dM9gcji6 w4GGSAP0pj/zQrEcBn7Sw8uNhyPeFBOYKTTIUQhcc95gGmk6l2hDaB4O8Ntj1qRtjtBb 8w7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OTO4YGvA; 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 e54-v6si924283qtf.385.2018.05.16.09.02.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 May 2018 09:02:33 -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=OTO4YGvA; 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]:53059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIysr-00023G-4P for patch@linaro.org; Wed, 16 May 2018 12:02:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIyjb-0004II-29 for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIyjV-00050X-Cb for qemu-devel@nongnu.org; Wed, 16 May 2018 11:52:59 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:39673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIyjV-00050K-6R for qemu-devel@nongnu.org; Wed, 16 May 2018 11:52:53 -0400 Received: by mail-pg0-x244.google.com with SMTP id e1-v6so468848pga.6 for ; Wed, 16 May 2018 08:52:53 -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=X0O0oscg2DXfZxWsZs+cPbi2oDfigSQN1qMljqBQmYE=; b=OTO4YGvAbBxE/XUUdMgeAorHczs/uvLYI+4I2m1pFT2QWbhwgXLAbYFnLmG0x/mwxt +9Hp0jK1ktvGxPu+xkUl0RWzr50DbA92QdhMIT8iAL5SKvb7sou91QnI2PwULrqcVg3D 7U6o1YQxDDSKaSoZBZReAADIu/9Hitm7wvQ/c= 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=X0O0oscg2DXfZxWsZs+cPbi2oDfigSQN1qMljqBQmYE=; b=KH2xaqK9Mqr6DatSAbi+HT5aG0M9I6J7ZLlyioMa5Vk8BLI79QFT1L4hN41dDn9y8j 8zpQBZ7uRkLSNPfL3d1xH8evrWaND0WWf6nFHGUaKVMy3Vv6x+KUDP0ON/AV9+9wUhjq A3k8VpSccE84DgF5N1UTxZHw9Z8tFQgOjk6MoxWbCjFphIDUmFNTk/Yr5WXronr7B5iu YaPXO+0qOH0hckc+0ApmDmFcim5bFih35wWkNEfoLgzIovhpAn5/7MDMUHoCjCA0Tvcb OYGSqK7NfWKEwpuUIQBTSWVLK228dLYQohMlYoE+1YvUvFPjfLoyQBkB6M59gwaXe4g6 qM+A== X-Gm-Message-State: ALKqPwcv8+n4VH4CgXvGE9SWBCpoGnJRX7jt0cJTa8UplbfHd3+GgRtn XozrBR+key/KrNbO/D68XJE3YdWrWvI= X-Received: by 2002:a62:3f81:: with SMTP id z1-v6mr1502225pfj.216.1526485971768; Wed, 16 May 2018 08:52:51 -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 c3-v6sm4966632pfn.62.2018.05.16.08.52.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 08:52:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 08:52:19 -0700 Message-Id: <20180516155243.16937-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516155243.16937-1-richard.henderson@linaro.org> References: <20180516155243.16937-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] [PULL 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We want to be able to specialize on the canonical representation. Tested-by: Alex Bennée Reviewed-by: Alex Bennée Reviewed-by: Peter Maydell 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)