From patchwork Fri May 11 00:43:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135448 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp247778lji; Thu, 10 May 2018 17:50:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrEUeTvsviUeGqaY0ZyTDFJj9Df0PygOFlJi7s0lkSkzTEiBsS5WPQB2WIKHnbc4o0hYY2t X-Received: by 2002:a37:a94f:: with SMTP id s76-v6mr3111899qke.284.1525999814173; Thu, 10 May 2018 17:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525999814; cv=none; d=google.com; s=arc-20160816; b=z1PCJERPFz3d9Yg5QVFZjGw6ilUuVy8H6AOv/I8Pu+2C6kIdeXo/yXgPRriIMOCAYX fhxOGt4uUOHxIHeRBTIYpOaF0Qg6FqKB4ze6PrArhfcUmpHj366fCsJr1OGmCfUGf3uq p8B0Jz2hV5CgS+AsizccCA74HZbEWiKB2N6Ok5lewIHzOjNJIET/301xXErt96z/7+gb AOtpCHWeiqK6uzbGC63+mTIyeROwd85Pn5Q67ulTCwE/zW4s2C1BOKsgM8TaVi3fibKl VltNe45Rzu/5jQ0ikfmJVmjIBLnAKFXTgMpGhq+frwVZDI5e26ZdVQr6J23KjpXYbarj IYpQ== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=+c1OY33GlD9jbumQABSh7zqANKi8GohjosLjplvUxw4=; b=ZNIiHOJwINb1y6hSBaSyu62dDjiXOgwMXjxgw6dKGQ1mPhXnqfRqL3pYGbMSc8Y7tT 32l2NB2lvhLl6vysJCfRYa66Rl7v/bqsRTh7MTkZ+RRt0g1eEu+JX7m51ZCxqy7ZiC0d JqrikoCf8KSIIplH+M6+catwoUGIsMRf9Obmt8/vKcK+tzG4D1r6A6z6nUKNbLjMk20l A4OD36fdsmNPA2YiQ8c62YuykHawgCT+x7N3yQ38cj6fG5+Xfk2HMNTA4+NpsihmKGFO pZ18zNrTaunNpU43cWtU6ec5FgjuEVeHnSfbaB2tl/m836aJnDUX6eLJt6bRqhcl/Yit /V/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=hO3qVGYM; 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 r3-v6si13882qvk.200.2018.05.10.17.50.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 17:50:14 -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=hO3qVGYM; 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]:36186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwGD-0006ai-K5 for patch@linaro.org; Thu, 10 May 2018 20:50:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwA6-00079L-Rv for qemu-devel@nongnu.org; Thu, 10 May 2018 20:43:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGwA6-0004oX-6d for qemu-devel@nongnu.org; Thu, 10 May 2018 20:43:54 -0400 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:44250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGwA6-0004o8-1n for qemu-devel@nongnu.org; Thu, 10 May 2018 20:43:54 -0400 Received: by mail-pg0-x241.google.com with SMTP id x145-v6so1673335pgx.11 for ; Thu, 10 May 2018 17:43: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; bh=+c1OY33GlD9jbumQABSh7zqANKi8GohjosLjplvUxw4=; b=hO3qVGYMed1cFNgFr95vWvsK1WA0Ay2Y/Njo80gJ8GhuHLktNrfUuOlgwbowIWsIeW IjxmLQvYEnaqVYD+DO5qaZ/b2QhXIYSEK6tnP6lkO+5ferZJMPCnVe8Er+tfgsFzsXit VaQh9i25Ajtnm7r888O/pykOz+O+co3ZsiFSU= 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; bh=+c1OY33GlD9jbumQABSh7zqANKi8GohjosLjplvUxw4=; b=iTrUtj6XnhLpGwN8O+c2mJr+YDDSSJFVoSaIe6fFSmTT281/WLxNTHDltDsJVlxw/6 qWA9vLv/hZOwJC8s7hdMVE8nCdzRPzVJD7c/8IlvcB+WhU4QcRJT0S08j+HuIzEgVIlp sNo9poFXn0NNegXw2b9Q/G442SOUukv9auA3TjhpQ96Ns4oLs5T5yMSdlhwqUC2GaZij ZRfaodUnneGBxD0ZUfv4eOJIW5L75KAJwXv6iulQvcBktmeH3fTxQq0aeQ7aXV6qOt9d ooGMno0b7tLXoLvEZE2nUwwjzAaHoGkCBekbI3w4yohHGv2EbXN5Xfdxa8rrlBA9OUD+ QEGA== X-Gm-Message-State: ALKqPwd+3qq8/3lB49SGOs3b+iMjPc1LF95s5kNlM7F/GXuoN+lPM2As QR8ApFCObp+D7tKm1FKW28Bbhb2tJGA= X-Received: by 2002:a65:6645:: with SMTP id z5-v6mr2746318pgv.43.1525999432677; Thu, 10 May 2018 17:43:52 -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 y24-v6sm4216728pfn.23.2018.05.10.17.43.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 17:43:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 17:43:29 -0700 Message-Id: <20180511004345.26708-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511004345.26708-1-richard.henderson@linaro.org> References: <20180511004345.26708-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::241 Subject: [Qemu-devel] [PATCH 03/19] 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. Signed-off-by: Richard Henderson --- fpu/softfloat.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) -- 2.17.0 Reviewed-by: Alex Bennée diff --git a/fpu/softfloat.c b/fpu/softfloat.c index e7c8213a5e..5e4982b035 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'. *----------------------------------------------------------------------------*/ @@ -241,6 +231,16 @@ typedef struct { bool arm_althp; } 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, \