From patchwork Sun Feb 4 04:11:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 126797 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp924396ljc; Sat, 3 Feb 2018 20:15:00 -0800 (PST) X-Google-Smtp-Source: AH8x227FkfbliVTTZxvEY2WJ3D5BYwk8hpvnY/6GsdZ9F6oTP91/berjHXXTq6JBYTuwKiaHrktA X-Received: by 10.37.223.19 with SMTP id w19mr10477572ybg.214.1517717700579; Sat, 03 Feb 2018 20:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517717700; cv=none; d=google.com; s=arc-20160816; b=ze5H2Yep4mTp9Pr5nCfbs5k4DpNz6zL16xmYVEeARzv1XV8blWELZL71LLMRpWXJ2O +oaelpjcjQOnKW42CIjOG/1LSgDVJkKz6Er4sQhx1uy5jyc569u+0i6YdP84vX0YWXBE CkTPq/duoOr45zIOvDsK/BqkiM5T/+foMgwwx3NNPyA8kPFrnnzUEktM5CMWe5ah65S/ us/GJJgJpmPw/z2THsoCAupmZGDCiquFX7Ad3drQp1a3DJW9Wro4d+wwgS8gzeJhr5zA nWExId+kABoUn6qGLt/PKOzou04BfO9OeeOcku7lvSw4IHuNIsQ+nUdgz3qWYX7JJ27h YYFA== 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=LYBDYqhPqW1KJM/7G3vqGhglHsM3X7ZibH4HrpCwWvI=; b=LURF4Mga3YIeqpZayJY1zrOlVXCt753og7kWat3TJ5JjEqbhHaYAzfIXJ9JUzAkavS i4NhH33qzMPePxuduvXOa8Gf+/SMWABQxpZYI6uUUmg8QhdjruqSFQ24+7NOOYkcIXBR HtQzf0DOZUSo+zel4CuPnHWR3hWdBDQzWrsr7StLZJPNqgKYNZli8zmRrAACqd7DR2mg bM6CHE7uehfQSSZbbRXu+Csm0OUZBxZHq5AfemwsYVyFLHLYAeyBkJUwqRBqRZBY6JS4 yeibueyK1MkJdx4OCta62i4DybfDWFjraWGZUO2zjIU1kWVrRIf+8VbYp5MN1DrT1vzG KlJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WL0VcCHL; 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 d76si611504ywb.35.2018.02.03.20.15.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 03 Feb 2018 20:15:00 -0800 (PST) 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=WL0VcCHL; 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]:58252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBhj-0007Dy-Vj for patch@linaro.org; Sat, 03 Feb 2018 23:15:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBen-0004fB-BB for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:11:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiBek-0004un-5I for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:11:57 -0500 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:37298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiBej-0004u1-W5 for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:11:54 -0500 Received: by mail-pg0-x244.google.com with SMTP id o1so1773104pgn.4 for ; Sat, 03 Feb 2018 20:11:53 -0800 (PST) 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=LYBDYqhPqW1KJM/7G3vqGhglHsM3X7ZibH4HrpCwWvI=; b=WL0VcCHLxg8TgnxxHs24VMx4hop87k1Wd/AAayaE92zQ7ZiXgYB1xu9bwhBkV7q4aD Brl2HuPXShRse4OY8ZMbCRfL8t2cQcE8w87IgiqRdbP9rmHfthcvVGuBghN4GVqJZntg 8qVYogu9929rVUJzPngSS/flJKHcNyL58j2I4= 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=LYBDYqhPqW1KJM/7G3vqGhglHsM3X7ZibH4HrpCwWvI=; b=obfl/+YFe0hWYIarozgzYVc4UXQM0Wd7DHqBHZzYobZ9q3TA5yfqFpvLMEvc6i/tJH fnmed/mJ19rtcJjrctYlwafe7fK2fGybn24Y8QkBYMG9XIHxtoprikmmfrAU/U1Smf27 /yjjT9upQBgahPV8iNtRbYZdulwhXTmpqc1gZ9WqVVCJ26MI6LfJMi2M1/YD0jMYAT9s sByK16Enq5asY0wHiUVUx+mLvS8WVWTGQtNdJXUX0xxVJ35HFWOgrFD8NmSSI0tSyaJX ne3UyobZXYItpiGJ4VW7ACYbUnSIy/tKvAoGUPJVmMmM5cRmovwjmfI+IfFc+YofZ+2q h1dw== X-Gm-Message-State: AKwxyte6yUkhlSctr+fPTVVqY5NFGSUBKnN6Qd5htjYZj6ulptVNhEtq NLguM3QltAUNwJHZapg/Vy69HWD/eGM= X-Received: by 10.101.81.68 with SMTP id g4mr33920122pgq.276.1517717512755; Sat, 03 Feb 2018 20:11:52 -0800 (PST) Received: from cloudburst.twiddle.net (174-21-6-47.tukw.qwest.net. [174.21.6.47]) by smtp.gmail.com with ESMTPSA id k3sm1399425pgr.12.2018.02.03.20.11.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 03 Feb 2018 20:11:51 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 3 Feb 2018 20:11:21 -0800 Message-Id: <20180204041136.17525-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180204041136.17525-1-richard.henderson@linaro.org> References: <20180204041136.17525-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 09/24] fpu/softfloat: improve comments on ARM NaN propagation 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, cota@braap.org, alex.bennee@linaro.org, hsp.cat7@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée Mention the pseudo-code fragment from which this is based. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- fpu/softfloat-specialize.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.14.3 diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index de2c5d5702..4be0fb21ba 100644 --- a/fpu/softfloat-specialize.h +++ b/fpu/softfloat-specialize.h @@ -445,9 +445,10 @@ static float32 commonNaNToFloat32(commonNaNT a, float_status *status) #if defined(TARGET_ARM) static int pickNaN(flag aIsQNaN, flag aIsSNaN, flag bIsQNaN, flag bIsSNaN, - flag aIsLargerSignificand) + flag aIsLargerSignificand) { - /* ARM mandated NaN propagation rules: take the first of: + /* ARM mandated NaN propagation rules (see FPProcessNaNs()), take + * the first of: * 1. A if it is signaling * 2. B if it is signaling * 3. A (quiet)