From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1klEbG-000778-6P for mharc-grub-devel@gnu.org; Fri, 04 Dec 2020 12:10:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klEax-00073i-TZ for grub-devel@gnu.org; Fri, 04 Dec 2020 12:10:13 -0500 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:41576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klEaC-0006PY-SD for grub-devel@gnu.org; Fri, 04 Dec 2020 12:09:58 -0500 Received: by mail-qt1-x82b.google.com with SMTP id l7so4405983qtp.8 for ; Fri, 04 Dec 2020 09:08:55 -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=nQegtQuHJn2ud/UCk6q9gyXqnNW0A3yOWyT1YI60u/Y=; b=OG0HWLnO2qQrbi7kM48Mbjs3brd63Ca1jtkt8DWG85c4oYy75+yVy04V2cXTb60zrk qIN7Je1Wu2vDW1/CHtbDK7RnFJgBhwrrhkWm9/FtsTdT89pDMetCvT7Zl9cj17tFu0ia ba47J7+PhwWqXk9SrJ5rJVpi47niPY3MKkhSCp7XXMhbmveir+1CacT12D0RSp63wnVn HG+iVMdme8GcrHv+1wBF7GmbKkcEAWBj7iPd4h/coeQl8xYW2Kq+qrbV1eXLpb/ADmO2 8jFzaNvSNUBKzRFHh0uM/wSjWwes0PfkovKJfjMvGDkObBqu6ip1Q1yG8N8wfCOr56YH 2oVg== 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=nQegtQuHJn2ud/UCk6q9gyXqnNW0A3yOWyT1YI60u/Y=; b=iiE/TlzuPD+OThCpx+6RZYIaFU+V2mn1zunzr+mdwCOGSVOPoQd64yuR/tDoqCfoCA Qx5ay6waDb6FCEkmDYWv6fTLioW/zjweWU1e6lsN2miL3pDfr4OZrb1WkbF1IR5nM3zc i+ynsEyT+1pb7qqrl9wn+OxVmH4TEbpN/v/NbFyi1QvIQt7TUHVjOvgzpkRybf+GN4wF m8a536C1NyFteGixZNjVEJ/AFNiguY42/oMmunLO+/ug+A3Gb5mx6pqXjwecwDo4c3CB /9tyHXYtKX5nzmOppbaE6kNmQ4R3Ea9u0TL7kDlN91Z3yyHCXzvZFah0tRCBOBlBDpNR s/xQ== X-Gm-Message-State: AOAM530MystbMvIGUzhdc6HTuc56B7o+tFIOB8QJyEQ1My/T//+QmXNv aIw39sTFSGgu6GDUPYgB1Y6h4J0ehcFySQ== X-Google-Smtp-Source: ABdhPJxUd+V8VoncEWQox7REk/u9470lSJBr5GX7o7XcG7Js73aPa3jOhHPKR8IWIDdqQ3ms2Xixfw== X-Received: by 2002:a02:7821:: with SMTP id p33mr7817052jac.53.1607100270974; Fri, 04 Dec 2020 08:44:30 -0800 (PST) Received: from localhost.localdomain ([136.49.211.192]) by smtp.gmail.com with ESMTPSA id w3sm1754909iol.9.2020.12.04.08.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 08:44:30 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org Cc: Patrick Steinhardt , Daniel Kiper , Glenn Washburn Subject: [PATCH v7 15/17] mips: Enable __clzdi2() Date: Fri, 4 Dec 2020 10:43:44 -0600 Message-Id: <51c2e9160d22f46dd9f40365774685f9712e3183.1607098915.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=2607:f8b0:4864:20::82b; envelope-from=development@efficientek.com; helo=mail-qt1-x82b.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: Fri, 04 Dec 2020 17:10:15 -0000 This patch is similiar to commit 9dab2f51e (sparc: Enable __clzsi2() and __clzdi2()) but for MIPS target and __clzdi2 only, __clzsi2 was already enabled. Suggested-by: Daniel Kiper Signed-off-by: Glenn Washburn --- 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