Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve rep stosb for local clears #6

Open
sgraham opened this issue Oct 19, 2023 · 0 comments
Open

Improve rep stosb for local clears #6

sgraham opened this issue Oct 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@sgraham
Copy link
Owner

sgraham commented Oct 19, 2023

Especially on Win64 where rdi is non-volatile, it's a lot of instructions.

Possible improvements:

  • stores zeros when that'd be fewer instructions
  • memset all the locals at the same time rather than each individually if it'd be smaller
  • call out to helper if it'd be shorter
@sgraham sgraham added the enhancement New feature or request label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant