Skip to content

[Core/bandwidth] Use 32-bit zero idiom for shorter encoding#410

Closed
Integral-Tech wants to merge 1 commit intoTheTumultuousUnicornOfDarkness:masterfrom
Integral-Tech:xor-refactor
Closed

[Core/bandwidth] Use 32-bit zero idiom for shorter encoding#410
Integral-Tech wants to merge 1 commit intoTheTumultuousUnicornOfDarkness:masterfrom
Integral-Tech:xor-refactor

Conversation

@Integral-Tech
Copy link
Contributor

Switch from xor rax, rax and xor rcx, rcx to xor eax, eax and xor ecx, ecx. The 32-bit instructions are one byte smaller while yielding the same semantics due to automatic zero-extension in 64-bit mode.

Switch from `xor rax, rax` and `xor rcx, rcx` to `xor eax, eax` and
`xor ecx, ecx`. The 32-bit instructions are one byte smaller while
yielding the same semantics due to automatic zero-extension in
64-bit mode.
@TheTumultuousUnicornOfDarkness
Copy link
Owner

Sorry, I cannot accept this MR because I want to stay closer to the upstream project (modifying such files will make rebase harder).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants