From patchwork Mon May 18 19:41:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksandar Markovic X-Patchwork-Id: 11556195 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8DE74913 for ; Mon, 18 May 2020 19:49:16 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 409DA20643 for ; Mon, 18 May 2020 19:49:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T/yYhxAv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 409DA20643 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:53830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jallD-0003P2-4Z for patchwork-qemu-devel@patchwork.kernel.org; Mon, 18 May 2020 15:49:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jalee-0002zk-89 for qemu-devel@nongnu.org; Mon, 18 May 2020 15:42:29 -0400 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]:45440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaled-0004cS-JE for qemu-devel@nongnu.org; Mon, 18 May 2020 15:42:27 -0400 Received: by mail-lj1-x242.google.com with SMTP id z18so2957773lji.12 for ; Mon, 18 May 2020 12:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HYRUeAwktwnZJjXPTxlxiB/3mxTEsXooJ/Wo/+9Cf9s=; b=T/yYhxAvoJ421ys94mTJoVNhe6oMWBuoj94v98mTu1F1AxEPmxvjuy7d89jHGQg9Ou Fxnp5+xTkxiEUq7FpOiagQmgfnijtj5g8VNhgUGb0+2W26nmotXorkfAfjJIfgGxWGT8 CJ9Ye4K5uWAE/Q52N0uWaknduUm6yiuuFnZgb26qhk1YNbzNObLkNzcaFmXA/PtvLGPZ 8BFDxYtkNLuIk3qFHUWyWJ5hCK0jHWroHwooQs1c3pZID8mkqX9BGDKV7UPjEFOcA1Fw MF0AKf9+UnogbS5AFSXuJN5bIqW/4qESgzZPtctLTEtXFk16G5EUqLqUj3VDACJcPMrj wBSQ== 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=HYRUeAwktwnZJjXPTxlxiB/3mxTEsXooJ/Wo/+9Cf9s=; b=frJpp/xGJMrN16NV34IZ3yMwIAImv442osboCod8MjFHRDZy4wwIYspV8xsNgA6X3D j1Nfk6Del3uGRfMDNvPylPFEdmN2eFbxsAVXIfzwY9Yz4iU5rddjUeCNkX4Ijz+AxSvK M2kTk+Sa6sgcfNqkJjbOMxEfSfhfZ/uVjrcxvVK094w6Z6s/OwGDcZ7TEdRc4jXNlclj gWmAf9Odhr+D00f/NYySC74RevcWQfeHfyZmGI+DuLqv6lijDvz4h0RsQz+KcJ6ldgcM q5fHiixlWxjnwnjxrgPVmHaVV86pySb84oQKY1m+N+/9xiyrB8/I6KJ3p2IhdFsqiBs+ JcKA== X-Gm-Message-State: AOAM533p0cX0qGgtmCN+8+vE28moJ+rPLO3lJ2Lz+B21lNldapGEDewM VgaYfXLbeByZt3K1ALfMH6kwuHEKBm0= X-Google-Smtp-Source: ABdhPJy9tS1rsF/30XWmFWSYiIne82mHFZTHfhqS5sVUMgZywLFIt/LH+WjPX7eq14793JYv2x/wbg== X-Received: by 2002:a05:651c:3c6:: with SMTP id f6mr7658511ljp.138.1589830945772; Mon, 18 May 2020 12:42:25 -0700 (PDT) Received: from localhost.localdomain ([109.245.227.98]) by smtp.gmail.com with ESMTPSA id r15sm7593128lfp.34.2020.05.18.12.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 12:42:25 -0700 (PDT) From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PATCH v5 13/22] target/mips: fpu: Remove now unused FLOAT_CLASS macro Date: Mon, 18 May 2020 21:41:40 +0200 Message-Id: <20200518194149.16281-14-aleksandar.qemu.devel@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200518194149.16281-1-aleksandar.qemu.devel@gmail.com> References: <20200518194149.16281-1-aleksandar.qemu.devel@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::242; envelope-from=aleksandar.qemu.devel@gmail.com; helo=mail-lj1-x242.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: aleksandar.rikalo@syrmia.com, Aleksandar Markovic Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" After demacroing CLASS., this macro is not needed anymore. Reviewed-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic --- target/mips/fpu_helper.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/target/mips/fpu_helper.c b/target/mips/fpu_helper.c index b3903f5357..e227e53f70 100644 --- a/target/mips/fpu_helper.c +++ b/target/mips/fpu_helper.c @@ -1128,45 +1128,6 @@ FLOAT_RINT(rint_d, 64) #define FLOAT_CLASS_POSITIVE_SUBNORMAL 0x100 #define FLOAT_CLASS_POSITIVE_ZERO 0x200 -#define FLOAT_CLASS(name, bits) \ -uint ## bits ## _t float_ ## name(uint ## bits ## _t arg, \ - float_status *status) \ -{ \ - if (float ## bits ## _is_signaling_nan(arg, status)) { \ - return FLOAT_CLASS_SIGNALING_NAN; \ - } else if (float ## bits ## _is_quiet_nan(arg, status)) { \ - return FLOAT_CLASS_QUIET_NAN; \ - } else if (float ## bits ## _is_neg(arg)) { \ - if (float ## bits ## _is_infinity(arg)) { \ - return FLOAT_CLASS_NEGATIVE_INFINITY; \ - } else if (float ## bits ## _is_zero(arg)) { \ - return FLOAT_CLASS_NEGATIVE_ZERO; \ - } else if (float ## bits ## _is_zero_or_denormal(arg)) { \ - return FLOAT_CLASS_NEGATIVE_SUBNORMAL; \ - } else { \ - return FLOAT_CLASS_NEGATIVE_NORMAL; \ - } \ - } else { \ - if (float ## bits ## _is_infinity(arg)) { \ - return FLOAT_CLASS_POSITIVE_INFINITY; \ - } else if (float ## bits ## _is_zero(arg)) { \ - return FLOAT_CLASS_POSITIVE_ZERO; \ - } else if (float ## bits ## _is_zero_or_denormal(arg)) { \ - return FLOAT_CLASS_POSITIVE_SUBNORMAL; \ - } else { \ - return FLOAT_CLASS_POSITIVE_NORMAL; \ - } \ - } \ -} \ - \ -uint ## bits ## _t helper_float_ ## name(CPUMIPSState *env, \ - uint ## bits ## _t arg) \ -{ \ - return float_ ## name(arg, &env->active_fpu.fp_status); \ -} - -#undef FLOAT_CLASS - uint64_t float_class_d(uint64_t arg, float_status *status) { if (float64_is_signaling_nan(arg, status)) {