From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Milo Wenxiang Niu Newsgroups: gmane.emacs.bugs Subject: bug#35071: [PATCH] Optimization calculation expression of Macro Date: Mon, 1 Apr 2019 06:08:28 -0400 Message-ID: <1554113308-15049-1-git-send-email-printer_bzu@163.com> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="110686"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Milo Wenxiang Niu To: 35071@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 01 16:26:34 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAxtO-000SdT-Q5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Apr 2019 16:26:30 +0200 Original-Received: from localhost ([127.0.0.1]:37778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAxtN-0002tZ-Lx for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Apr 2019 10:26:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAxeV-0003xG-3G for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 10:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAxeU-0005n7-8e for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 10:11:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54473) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAxeS-0005kJ-MM for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 10:11:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hAxeS-0000KK-FO for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 10:11:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Milo Wenxiang Niu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Apr 2019 14:11:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35071 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15541278101187 (code B ref -1); Mon, 01 Apr 2019 14:11:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Apr 2019 14:10:10 +0000 Original-Received: from localhost ([127.0.0.1]:39784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAxdZ-0000J3-AO for submit@debbugs.gnu.org; Mon, 01 Apr 2019 10:10:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAty3-0000SE-Si for submit@debbugs.gnu.org; Mon, 01 Apr 2019 06:15:05 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53287) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hAtxy-0005pN-L4 for submit@debbugs.gnu.org; Mon, 01 Apr 2019 06:14:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAtxx-0007tn-Mz for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 06:14:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAtxw-0005oG-It for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 06:14:57 -0400 Original-Received: from [124.204.49.82] (port=24722 helo=xiaomi-vm.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAtxw-0005m0-6v for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 06:14:56 -0400 Original-Received: by xiaomi-vm.localdomain (Postfix, from userid 1000) id D291E6A4750F; Mon, 1 Apr 2019 06:08:53 -0400 (EDT) X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 01 Apr 2019 10:10:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157027 Archived-At: From: Milo Wenxiang Niu * include/grub/kernel.h: : optimization expression that caculate next var. --- include/grub/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/grub/kernel.h b/include/grub/kernel.h index 133a37c..fee7f66 100644 --- a/include/grub/kernel.h +++ b/include/grub/kernel.h @@ -104,7 +104,7 @@ extern grub_addr_t EXPORT_VAR (grub_modbase); var && (grub_addr_t) var \ < (grub_modbase + (((struct grub_module_info *) grub_modbase)->size)); \ var = (struct grub_module_header *) \ - (((grub_uint32_t *) var) + ((((struct grub_module_header *) var)->size + sizeof (grub_addr_t) - 1) / sizeof (grub_addr_t)) * (sizeof (grub_addr_t) / sizeof (grub_uint32_t)))) + (((grub_uint32_t *) var) + (((struct grub_module_header *) var)->size + sizeof (grub_addr_t) -1) / sizeof (grub_uint32_t))) grub_addr_t grub_modules_get_end (void); -- 1.8.3.1