From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kh4Kw-0008SK-J2 for mharc-grub-devel@gnu.org; Mon, 23 Nov 2020 00:24:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kh4Kt-0008L1-Su for grub-devel@gnu.org; Mon, 23 Nov 2020 00:24:24 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:37224) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kh4Ks-0006bC-CO for grub-devel@gnu.org; Mon, 23 Nov 2020 00:24:23 -0500 Received: by mail-wm1-x344.google.com with SMTP id h21so16083139wmb.2 for ; Sun, 22 Nov 2020 21:24:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dWcteTAQ7hXmrQ/Yt/89trOBQ4opQVJyI+I3aO5onBk=; b=F5s5S8axHwinn/taKu9tHB0vBYDdLa1Qq6LFM+Nm7nuqVaMY46pGCdU+0AlyuU6c2j BeL4hQ3W2XSXnqEzc+64iZWiwbQR5KTbnQbiffbrFFJDnjBplIsQNnJIxKm87UxtpBNc CekKYQxq+mUcxZyHKnfPApaPKu5VPHyNZq4naD4Px4HFp9XGbRcQvERP7m9+4nqlRM/0 L60pN8Ktrvu5unXikfjo1bZXHAkEnjYyknXRkKCv2xeLupIrHGafyOWVMoIqvtLyhgZs qbix7IVkUchbT5zjfSOqxEHkpKR+aKu3ZGoTLDPxJ6GdAhWqG8qT1w11fTOQYIefb/eJ kpIw== 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=dWcteTAQ7hXmrQ/Yt/89trOBQ4opQVJyI+I3aO5onBk=; b=WzeNrmOOG3JD4aJnRpqEZ9MtZdG70xKcum1mIUu/0oQvqnWnZnjbeM3p3/oZqjJeGh 5/XwJ95tJXYSDpbdfXgZOL3pidAmFnbgHinwArmWorB18M+gCTFnieCcD08QFiY8U41W tngN1ZXGmT/JmgFp7Wqlcpol9TECPkdw62PUqklnCAcIqkgwrQXzBihkB/aTp55+0CQm dmsaa+CVD1t5df9IYXpEwHo08Sn3TZEc7fX5Jnnt3ZoG2L4+1etQ4pNoksbw/dwh5WWt wL+C8vkHKJYMIBwcmeiyXEjFIX6poMJ8zvGnD9uwNZwwgcJHBFly4XNvUrE00CzuASDZ HD6A== X-Gm-Message-State: AOAM530Li19OHNMmrXrfAUWVXAOs/szSrEFcT7gwntRj3FvdtUxDuPJC /5Rp0UjzrwY1az0QDyX8vMMUy9uuFZl01g== X-Google-Smtp-Source: ABdhPJway+/BhnbCYts2P0SAzDveQ+Mcl2w7D7ev+9+mfGhJygqK8LyZ4Y11lR1a00ThfVX7g333rw== X-Received: by 2002:a05:600c:2c50:: with SMTP id r16mr21148148wmg.153.1606109060878; Sun, 22 Nov 2020 21:24:20 -0800 (PST) Received: from localhost.localdomain ([136.49.211.192]) by smtp.gmail.com with ESMTPSA id f16sm11631780wmh.7.2020.11.22.21.24.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2020 21:24:20 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org Cc: Patrick Steinhardt , Daniel Kiper , Glenn Washburn Subject: [PATCH v5 09/11] mips: Enable __clzdi2() Date: Sun, 22 Nov 2020 23:23:22 -0600 Message-Id: <8316e94cee9280953a8311666e3115b6090cb3a2.1606108123.git.development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::344; envelope-from=development@efficientek.com; helo=mail-wm1-x344.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2020 05:24:24 -0000 This patch is similiar to commit 9dab2f51e (sparc: Enable __clzsi2() and __clzdi2()) but for MIPS target and __clzdi2 only, __clzsi2 was already enabled. Signed-off-by: Daniel Kiper --- grub-core/kern/compiler-rt.c | 2 +- include/grub/compiler-rt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grub-core/kern/compiler-rt.c b/grub-core/kern/compiler-rt.c index a464200c6..2057c2e0c 100644 --- a/grub-core/kern/compiler-rt.c +++ b/grub-core/kern/compiler-rt.c @@ -448,7 +448,7 @@ __clzsi2 (grub_uint32_t val) } #endif -#if defined(__riscv) || defined(__sparc__) +#if defined(__mips__) || defined(__riscv) || defined(__sparc__) int __clzdi2 (grub_uint64_t val) { diff --git a/include/grub/compiler-rt.h b/include/grub/compiler-rt.h index 7591980b4..17828b322 100644 --- a/include/grub/compiler-rt.h +++ b/include/grub/compiler-rt.h @@ -115,7 +115,7 @@ int EXPORT_FUNC (__clzsi2) (grub_uint32_t val); #endif -#if defined(__riscv) || defined(__sparc__) +#if defined(__mips__) || defined(__riscv) || defined(__sparc__) int EXPORT_FUNC (__clzdi2) (grub_uint64_t val); #endif -- 2.27.0