Re: [PATCH RESEND] lib/x86_64/setjmp: Use 32-bit zero idiom for shorter encoding

Daniel Kiper <[email protected]> Thu, 18 Dec 2025 18:28:59 +0100
Newsgroups org.gnu.grub-devel
Message-ID <[email protected]>
On Wed, Nov 26, 2025 at 04:45:46PM +0800, George Hu wrote:
> Switch from `xorq %rax, %rax` to `xorl %eax, %eax`. In 64-bit mode,
> zeroing EAX implicitly clears RAX, and the 32-bit form encodes one
> byte smaller while keeping identical semantics.
>
> Signed-off-by: George Hu <[email protected]>

Reviewed-by: Daniel Kiper <[email protected]>

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel