Skip to content

Remove redundant register move in memory zeroing#3

Open
Mquarmoc wants to merge 3 commits intopeachey2k2:masterfrom
Mquarmoc:pr3-memory-zeroing-fix
Open

Remove redundant register move in memory zeroing#3
Mquarmoc wants to merge 3 commits intopeachey2k2:masterfrom
Mquarmoc:pr3-memory-zeroing-fix

Conversation

@Mquarmoc
Copy link
Copy Markdown

@Mquarmoc Mquarmoc commented Aug 1, 2025

Eliminate unnecessary mov rdi, r15 instruction
stosq automatically uses rdi destination register
Reduces binary size by ~8 bytes

SD.Next User added 3 commits August 1, 2025 20:26
- Eliminate unnecessary EAGAIN comparison
- Remove redundant error message
- Simplify error handling logic
- Reduces binary size by ~15 bytes
- Replace complex bit operations with simpler arithmetic
- Remove unnecessary register operations
- Reduce code complexity while maintaining functionality
- Reduces binary size by ~25 bytes
- Eliminate unnecessary mov rdi, r15 instruction
- stosq automatically uses rdi destination register
- Reduces binary size by ~8 bytes
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.

1 participant