Re: [PATCH] Optimization calculation expression of Macro

2019-04-04 Thread Daniel Kiper
On Wed, Apr 03, 2019 at 05:27:18PM +0800, WILLIAM NEW wrote: > Just to remove the common factor: "sizeof (grub_addr_t)" from the > numerator and denominator of the fractional expression of next var. > Let me explant it: > Shortly: > H: struct grub_module_header ; > B: grub_uint32_t ; > A: grub_add

Re: [PATCH] Optimization calculation expression of Macro

2019-04-03 Thread WILLIAM NEW
Just to remove the common factor: "sizeof (grub_addr_t)" from the numerator and denominator of the fractional expression of next var. Let me explant it: Shortly: H: struct grub_module_header ; B: grub_uint32_t ; A: grub_addr_t; Thus, original expression can be expressed as: var = (H *)((B*)var) +

Re: [PATCH] Optimization calculation expression of Macro

2019-04-02 Thread Daniel Kiper
On Mon, Apr 01, 2019 at 05:31:07AM -0400, Milo Wenxiang Niu wrote: > 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(-) > >

[PATCH] Optimization calculation expression of Macro

2019-04-01 Thread Milo Wenxiang Niu
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..fee7f