From nobody Tue Feb 10 05:10:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1543103909404335.190609320525; Sat, 24 Nov 2018 15:58:29 -0800 (PST) Received: from localhost ([::1]:58147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQhoY-0004XF-2e for importer@patchew.org; Sat, 24 Nov 2018 18:58:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQhmV-0003G0-SP for qemu-devel@nongnu.org; Sat, 24 Nov 2018 18:56:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQhmS-0005NP-4w for qemu-devel@nongnu.org; Sat, 24 Nov 2018 18:56:11 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:58305) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gQhmQ-0004j3-O9 for qemu-devel@nongnu.org; Sat, 24 Nov 2018 18:56:08 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 42DD1CFF; Sat, 24 Nov 2018 18:56:02 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 24 Nov 2018 18:56:02 -0500 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 843A1102F2; Sat, 24 Nov 2018 18:56:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h= from:to:cc:subject:date:message-id:in-reply-to:references; s= mesmtp; bh=kIeLqTq4Rg/eYmqPOg5c92+v8rTPU4/b//I2wiwiWi4=; b=xbgVZ lEHFOYfjjkqg89qX8i0arb4cwKLZq2Z05QXIKqF67tFS2z1Y0VZ1CwnkO3XY94jZ 9ZSn+SRBozszZmIv56WNkynDIc2p6lb9grsFy3c6lrkACXNGt8uYbnXlaEvZ/mra v78/yIt/MQRkCu1/nXdjKOlSBs2a4s7VZVTf6c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=kIeLqTq4Rg/eYmqPOg5c92+v8rTPU 4/b//I2wiwiWi4=; b=iLmgum38s/twWeXQzA15xjGBRTTpdf0PrZc6d6gV3nun6 Xp1ziyIRu9mAE9iQUnXbK4Rx0CgDs3dV7M/1/6xi6r4d9/Ka+aAMx3plWzRw6G6r Qe6QX1DG05OWzBR8xW03zo5s3Z9jMWHgroMICz1cOFZJ2sf1CbnsAY4Rdc0vnp5L CP7CQ/AADcWi9i9i2gZjjJ4zG6WOyF6fPIymFuwF6yC2EtDQp8Cy/Z0UiIM/BZ6U QIOS5bYi6J+EXc6O50QHdjYp/JBSFVutGdX/r9TKzmWSBNY/fqdoQJBVmZkcBzJk WeyWkWW39GPa1SR8Wg6ok4Qfi1e4jU9cAj/lXDMVQ== X-ME-Sender: X-ME-Proxy: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Sat, 24 Nov 2018 18:55:45 -0500 Message-Id: <20181124235553.17371-6-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181124235553.17371-1-cota@braap.org> References: <20181124235553.17371-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.25 Subject: [Qemu-devel] [PATCH v6 05/13] softfloat: add float{32, 64}_is_zero_or_normal 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: Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" These will gain some users very soon. Signed-off-by: Emilio G. Cota Reviewed-by: Alex Benn=C3=A9e --- include/fpu/softfloat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 9eeccd88a5..38a5e99cf3 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -474,6 +474,11 @@ static inline bool float32_is_denormal(float32 a) return float32_is_zero_or_denormal(a) && !float32_is_zero(a); } =20 +static inline bool float32_is_zero_or_normal(float32 a) +{ + return float32_is_normal(a) || float32_is_zero(a); +} + static inline float32 float32_set_sign(float32 a, int sign) { return make_float32((float32_val(a) & 0x7fffffff) | (sign << 31)); @@ -625,6 +630,11 @@ static inline bool float64_is_denormal(float64 a) return float64_is_zero_or_denormal(a) && !float64_is_zero(a); } =20 +static inline bool float64_is_zero_or_normal(float64 a) +{ + return float64_is_normal(a) || float64_is_zero(a); +} + static inline float64 float64_set_sign(float64 a, int sign) { return make_float64((float64_val(a) & 0x7fffffffffffffffULL) --=20 2.17.1