From patchwork Wed Jan 24 13:13:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 125656 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp417870ljf; Wed, 24 Jan 2018 05:32:12 -0800 (PST) X-Google-Smtp-Source: AH8x225U4TTqxhwNDkSlEiuJ1nEZ1cxAPM3CeMOk8C94M4TFc1IVeV9kuTqs38rYVdXHeaTwsJD/ X-Received: by 10.129.116.67 with SMTP id p64mr5192679ywc.110.1516800732727; Wed, 24 Jan 2018 05:32:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516800732; cv=none; d=google.com; s=arc-20160816; b=Yai7HQtYUFzVw7pfFXES4My3yssAi6xnS86CMRbBG0Gm9smRI6biSOSqd4p1+EDKMz gGBFGuz/MUpcB+PZP4vXXWfRO+shBA9gZM8dMM6VINbOoVXGZ/pBNyFcTaGRbys3TEs9 cD9HiJ+7e0OE7BGww8eEci1mX4IZAshYZR5CCtZzZwQ5yktA52TSj40Cw1wdCa31ApDf 1sMISLMlNCR0Fj+ZwsvUN5VNIpexSaguEJkbH0P8R4KFd9SsYUhNDFUMUhz/08b58zhS Bcp/9nhRD6IxMOF9Vp30MzQ41Cd/urCQ3Lie0U5S/jr0SEwQ/j2eCwm4jzIALGy7OEXR qNxQ== 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=CbmvNTfC2Q0sl6dTe4aB9f4qRWG8djUkf97QFijCsF0=; b=aIBWVpU4MEbx9/qhwA51tb+leER5zSmRR1b563Ec78DYjUG8tdYEJjs6embtYFyNO+ N5fxDCrPKVA06TXsCuUxeMMf7zGD57SDLgRkzcsN+mtGaNsiCoqwuLFpE9l8qMkjrICp bxEUzhI+H1ncvJyGXE6HVotuC5jVEnh8rg7RnOiDuhKvmuHBbJ2T2LBS7Lt6JnzYsO7R 4zlVpdI/97ZmvKWdEuuiJhLqi1WVl0Qy43yTJuOPXI3Xlhq+DF0bvRlR/IPcUAjEb5GH uExiThvd/vTMjmafiOf0QorpeMboJYoieMpRdfQWL8bpzH77AfB+dFLMstf7PYnEcW9t pRSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=URB8KA9A; 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 g3si46834ywl.518.2018.01.24.05.32.12 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Jan 2018 05:32:12 -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=URB8KA9A; 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]:48780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeL9w-0000P4-5X for patch@linaro.org; Wed, 24 Jan 2018 08:32:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeKrq-0003LR-Ag for qemu-devel@nongnu.org; Wed, 24 Jan 2018 08:13:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeKrp-0003s9-5d for qemu-devel@nongnu.org; Wed, 24 Jan 2018 08:13:30 -0500 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:39290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eeKro-0003rM-VF for qemu-devel@nongnu.org; Wed, 24 Jan 2018 08:13:29 -0500 Received: by mail-wr0-x242.google.com with SMTP id z48so3975381wrz.6 for ; Wed, 24 Jan 2018 05:13:28 -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=CbmvNTfC2Q0sl6dTe4aB9f4qRWG8djUkf97QFijCsF0=; b=URB8KA9AfVWZj0tF+hyh2pIQFnfRPTOxT++l+DzGOdfmqaa9JyE20jUTSZInNhOnyN IOBomsWyh6n5qk1YZMIUtObdycHSYutfXdoNUfZ9El0nPownRy4wZjKbucz8kYB39NIz cSW8DVH3qPjsQpFMd1AAPXSp61MzsakpHLZPY= 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=CbmvNTfC2Q0sl6dTe4aB9f4qRWG8djUkf97QFijCsF0=; b=PpQmOik79dHcf8AoiMXqS/dawvG3vrytOx0Q7cJC4AK5JZ156HY8FTsRhoPz2YdfdO RLcfBOvjmgN8ZJWKixizoCvnpD0sxVIkeTqkE7D6hBErXDiNprYq5kuKi80l6K82BUwY Y7Hpo5NdGCgcymjyWJAjp9lyF8ipLup+A7H8q+KtjecPJ8DlFGrkiRnFwKtQj0N7ty21 w+mh07AiiAk+lya/mMx745M1aN+VIwS4lpc8d70PfBoElTYwqgA1BReGVVBNGlfnRzt3 Fp//YexHtmUoqKo5LrnlVT9KCFSJ6rWnm/YddzGhRaOzW05jDOojPuBa4RzRaKzlljrx 12/A== X-Gm-Message-State: AKwxytdy3oB3mCoVGsFHyWHCDj3CT9gM7jeHCoRufGDgoqMur+CgrFco /JMa4LjSQenLLPWvh1Y7jloK1g== X-Received: by 10.223.134.179 with SMTP id 48mr5619616wrx.93.1516799608028; Wed, 24 Jan 2018 05:13:28 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id f5sm2145924wrh.28.2018.01.24.05.13.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 05:13:21 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 56A7D3E0962; Wed, 24 Jan 2018 13:13:16 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org, laurent@vivier.eu, bharata@linux.vnet.ibm.com, andrew@andrewdutcher.com Date: Wed, 24 Jan 2018 13:13:02 +0000 Message-Id: <20180124131315.30567-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180124131315.30567-1-alex.bennee@linaro.org> References: <20180124131315.30567-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::242 Subject: [Qemu-devel] [PATCH v3 09/22] 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Aurelien Jarno Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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.15.1 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)