From patchwork Tue May 15 22:25:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135940 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp79806lji; Tue, 15 May 2018 15:33:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpCz2EZkZNXmLAXR7ig9ZoSGONMpjUDGJciHGarWvZbJq2PHIvWWloThrS6Ll5HalD/w2P+ X-Received: by 2002:aed:3c31:: with SMTP id t46-v6mr14906917qte.16.1526423590619; Tue, 15 May 2018 15:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526423590; cv=none; d=google.com; s=arc-20160816; b=maMhTnofL2PYfuoaVPuLZAgOEZmhcJ5cC88BpnfuO6/w1X9s/r6ZZV1C1cE8e3rqV+ DWtLSmUP8HOmMJ3ibPnRcYPiLzGleb0Tfxk7a9n1CTERxzsZ/sT+y2byCEMGQgFDXtOo AA+6IlKOxVp7nkYFZVVz9GbRL5MA7u+XvsukWsNncof7y51TWaHe7jgsIsxRx6Z5iqMN Sm2vb6qtRWRMTvNEFoODUpjuxXtWu0NGGy92miUqEyUz9f8QmfVw6jtxmcOH3lUIxaZj sRXCMTblvwRhQYhVWdOAjMKjrdPiy6aobKvMR9o978bICkHbUwXUHsmY8NavYTU0jCtq 9n8w== 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=032amFxsMjuJshyqilqQV6FgFjTh9GZe6dxSu+VA4iq4eMh8JdUZse9vXNo6xcEOk1 d8AlkWkmz5NGYx9UIUmyqc9q0gUxtgEhPWQ/8Bf61sjf07v789BNWgJjSZP9RNgok6Xk y+I7ygB4pdurW3OcJA38IzsrhUKlBcz7JYWUkVYfpcX/SQ9XV0eWk8boWynivfAjx8eX uyjdep87/l7/DRu7S/wLDN3/z/tOFhxAg3ejYDzyd6T/vp+21lkU7ccqboAnj+5OVRsW 3f/EWsl1XaygxB2OcwmTl0VW8vve3PO9ZvnOscYGgA8SGpLHiM1Oh2go9nZKwrgAirZR aV9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=JZVbqzD1; 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 x8-v6si1202324qta.148.2018.05.15.15.33.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 15 May 2018 15:33:10 -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=JZVbqzD1; 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]:36341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiVK-0008GV-2Q for patch@linaro.org; Tue, 15 May 2018 18:33:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiOH-0003ID-8w for qemu-devel@nongnu.org; Tue, 15 May 2018 18:25:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIiOF-0003ub-Ci for qemu-devel@nongnu.org; Tue, 15 May 2018 18:25:53 -0400 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:42219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIiOF-0003p8-4l for qemu-devel@nongnu.org; Tue, 15 May 2018 18:25:51 -0400 Received: by mail-pg0-x241.google.com with SMTP id p9-v6so649121pgc.9 for ; Tue, 15 May 2018 15:25:51 -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=JZVbqzD1j+/xjAJZ3GgGtZBICHS7b/cpBh1KbaCRpJp0/48hHw6KZW+dFHxEhVTI7A 3NM3MCod3/BMWmAMqvzouzEAla+3I60y8B9RQgN0W/N0xKiEnhaYESYc9RC05lQPnYga fPdu31p4aamyzGq9vKTrj/7+NLncjJV+9W+ss= 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=gz/ODzceMKAtlj190rkhGBuk6o/7GUbJu9gqKTH33GxDDmkcgk7t45V408fykifNo0 hYQiwXo6HRdMwv91Mi3/+FSiqLNijS1K7UEoEGLutrUKi/SAJ6laEqit049iOmfo+fC4 I3ZiRAvSgc4olldHxhaW7Opn5BrxswURyJX4DAo7H/vQPScVLdEiimRKmWeBz+Zdle53 gD3ugD4z1F83g1xpW6ddoA0DIOSi6+FEzspoDlo+SMTpFWOhMKVOLWQ1ohVZ6WazuO68 f2gvTBKV23F6HUaO9Mc++J55tdIH2aH97pp1vqW+2o+YaM7HoWqiR0oa+g+p67LZqsGk GLpg== X-Gm-Message-State: ALKqPwemGJ6hmxiZaJCJ0M0HvcheKyXtF95By6I66L3/qZnu4cdpXdrK l7TaRjFiRSmUkF7OGiKJF45032Vt49g= X-Received: by 2002:a65:438a:: with SMTP id m10-v6mr11887878pgp.315.1526423149796; Tue, 15 May 2018 15:25:49 -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 g11-v6sm941419pgq.62.2018.05.15.15.25.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 15:25:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 15 May 2018 15:25:16 -0700 Message-Id: <20180515222540.9988-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180515222540.9988-1-richard.henderson@linaro.org> References: <20180515222540.9988-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::241 Subject: [Qemu-devel] [PATCH v6 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. 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)