From patchwork Sun May 16 12:33:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 439845 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp255478jac; Sun, 16 May 2021 05:39:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO62Zsmk2WU+oPqBvJbXtid3z/s3wiA0/ZML9jghCcvlaRPzfWdV8S8dWHud1whhZtwMpv X-Received: by 2002:a6b:8dd5:: with SMTP id p204mr29743981iod.195.1621168766562; Sun, 16 May 2021 05:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621168766; cv=none; d=google.com; s=arc-20160816; b=mgmAzQll1uam0iIssSkM1EzLbr+5xu9vevBOVaKrvLHH6bOj8ew+4DTRvzj5fjefKI l52BbAo0dBTxBCCEC3a9eRJ/fpqti3vAFeEUCHdgZtS9Tlm22emSXGpSnIq5G80x2WRy WQXkraiZ1piagepTfQRDmeScOWj3r3Ny4o9SRm4M4KGcXa4ySBvkaAqXg33S6ffMOMw+ S2SGDRtMp6eEigvvv6ZeBdmUpnvovs33MkKIwmqNOt9zNIpSzD1jSldDQhontq/puTFj z2TkfYOqWauScPjlZDyfL/ehC/qp40Gb5g7x1CDQJi+VCOUHHkZUvDdJoqYtU+CsMUN3 fadw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ORTAesgjnoHt5n7pCAJGj1DNtFaoHQTutdablpI0FS8=; b=nUZ5xP7pJb/WPhlKOcH+9zUpU34KLFTBM+DgLo8FwpicNzX/4pan5ySps6QKmydXWp 1U4a33WnXokQui7E30UIkUWvy6FQeetL+37ib/g76WbGuO8NVvlgJrsNjqtQ6kNPfPdX HS2UFku/lKPby7EBOYVa5tB57GqzF503cYiV3FhWn3e/lPdI1KPLLN+rT3uJv3J2Rl29 4KS6/jVK1bd/5L8aWIz6EJYSd0e7VVhHPTDmxhrh/b+YqBVeaGhDWNEP/Mp35yl9cB2h IiSyfVKZFmLJL5anVOxHedyniToJcUljXnxSLYxrTLTM6wCJDyri3i5cg/ucHB827VTw lKTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HzYv8jL0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d70si3233405iog.4.2021.05.16.05.39.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 May 2021 05:39:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HzYv8jL0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liG3J-000558-UK for patch@linaro.org; Sun, 16 May 2021 08:39:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liFym-0007Lt-7X for qemu-devel@nongnu.org; Sun, 16 May 2021 08:34:45 -0400 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:36531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liFyh-0007iz-Ks for qemu-devel@nongnu.org; Sun, 16 May 2021 08:34:43 -0400 Received: by mail-qt1-x836.google.com with SMTP id t7so3023936qtn.3 for ; Sun, 16 May 2021 05:34:39 -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=ORTAesgjnoHt5n7pCAJGj1DNtFaoHQTutdablpI0FS8=; b=HzYv8jL0fvOf1NeM0bPe4BcdnGiF9hl9TShsQEm5a7uUmai26sk3M9XgQg1OOK62nq TjACSywMw0XYtr4iWnahQkPRle/+OIVfLHR+z9o+gR/p3z1GQ5A7BvuNlXS1PSGgQz1X NOI/Ei+Ed5FMYPgmYo/4OQ8qOqxPHB5Kk6o2FmGuqmn5n+WjBy/0nXe6uhEkRlqptfhB lQmYumCKQ2WyFRVWgqhy4OlqidqqQAcKqQ1aghXY1f0U4dy3RaTnGGFGWvB7yvemOYlQ A9n+bCZQNRehuDR1IJqlN8ljTr6ZyZE8ZvKrER0pUqf6kC15hLXqP1nZ9Vkc+WeP43TJ ve3Q== 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=ORTAesgjnoHt5n7pCAJGj1DNtFaoHQTutdablpI0FS8=; b=RqzUkASCkU8VIET7ZYCiO+1fneWkJauHj2SjArZInZTOsP3wTF7nXcvn38yJTWdYxA U/NANeamUVFWEVOyM/cODr85h9OvSEJ1JW3qXwvKSLlcTMiAHKntUCPmwaF4xoCrL/Hp DWZ8vFDpw74+eudqndPI20rvpgYo/wp1mUftkXxK2PN0Y8RB/osQZeRWy6nOXHyEi98J cW5veP/C9YKZ9ED4sT9ttIl9+oI3Jzrq7nISapl7iQB0GJ29K4DDwFAW12LFD/IvB30v 09oGECdPj0WTvmxKM4bsU0ikW4M81WCqTrfrYeLXGbczM6K0QmvataEX3fbS37dJsbyA UfHQ== X-Gm-Message-State: AOAM5331qOXqdcYVWDSTR3ZVnpNO2DyygsUl8sm/94Pb6J3h/98qHbYl 4hc+ZNThq2K08V2uOewY6glvST/JZq6aB+wcRAM= X-Received: by 2002:ac8:5855:: with SMTP id h21mr50480165qth.281.1621168478745; Sun, 16 May 2021 05:34:38 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id s5sm8500553qkg.88.2021.05.16.05.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 05:34:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 07/46] softfloat: Inline float_raise Date: Sun, 16 May 2021 07:33:52 -0500 Message-Id: <20210516123431.718318-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210516123431.718318-1-richard.henderson@linaro.org> References: <20210516123431.718318-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x836.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , David Hildenbrand Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- include/fpu/softfloat.h | 5 ++++- fpu/softfloat-specialize.c.inc | 12 ------------ 2 files changed, 4 insertions(+), 13 deletions(-) -- 2.25.1 diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 78ad5ca738..019c2ec66d 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -100,7 +100,10 @@ typedef enum { | Routine to raise any or all of the software IEC/IEEE floating-point | exception flags. *----------------------------------------------------------------------------*/ -void float_raise(uint8_t flags, float_status *status); +static inline void float_raise(uint8_t flags, float_status *status) +{ + status->float_exception_flags |= flags; +} /*---------------------------------------------------------------------------- | If `a' is denormal and we are in flush-to-zero mode then set the diff --git a/fpu/softfloat-specialize.c.inc b/fpu/softfloat-specialize.c.inc index e19809c04b..96ed8c1a26 100644 --- a/fpu/softfloat-specialize.c.inc +++ b/fpu/softfloat-specialize.c.inc @@ -227,18 +227,6 @@ floatx80 floatx80_default_nan(float_status *status) const floatx80 floatx80_infinity = make_floatx80_init(floatx80_infinity_high, floatx80_infinity_low); -/*---------------------------------------------------------------------------- -| Raises the exceptions specified by `flags'. Floating-point traps can be -| defined here if desired. It is currently not possible for such a trap -| to substitute a result value. If traps are not implemented, this routine -| should be simply `float_exception_flags |= flags;'. -*----------------------------------------------------------------------------*/ - -void float_raise(uint8_t flags, float_status *status) -{ - status->float_exception_flags |= flags; -} - /*---------------------------------------------------------------------------- | Internal canonical NaN format. *----------------------------------------------------------------------------*/