unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Milo Wenxiang Niu <printer_bzu@163.com>
To: 35071@debbugs.gnu.org
Cc: Milo Wenxiang Niu <mailist1go@gmail.com>
Subject: bug#35071: [PATCH] 	Optimization calculation expression of Macro
Date: Mon,  1 Apr 2019 06:08:28 -0400	[thread overview]
Message-ID: <1554113308-15049-1-git-send-email-printer_bzu@163.com> (raw)

From: Milo Wenxiang Niu <mailist1go@gmail.com>

	    * include/grub/kernel.h: <FOR_MODULES(var)>:
			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






             reply	other threads:[~2019-04-01 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-01 10:08 Milo Wenxiang Niu [this message]
2019-04-01 14:46 ` bug#35071: [PATCH] Optimization calculation expression of Macro Basil L. Contovounesios

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1554113308-15049-1-git-send-email-printer_bzu@163.com \
    --to=printer_bzu@163.com \
    --cc=35071@debbugs.gnu.org \
    --cc=mailist1go@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).