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

hfe: Protect HFEv3 against a broken run of 1s #912

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

ejona86
Copy link
Collaborator

@ejona86 ejona86 commented Jul 5, 2024

Move the is_v3 check out of the loop since we are checking it so frequently.

Move the is_v3 check out of the loop since we are checking it so
frequently.
@keirf
Copy link
Owner

keirf commented Jul 7, 2024

Hey, I suppose I should just check, but: Does this improve the generated code in a useful way? And/or do you consider this a readability improvement?

@keirf
Copy link
Owner

keirf commented Jul 7, 2024

Oh I see, it would also need another check for your avoidance of the opcode space. Fair enough!

@keirf keirf merged commit 043d4f4 into keirf:master Jul 7, 2024
1 check passed
@ejona86 ejona86 deleted the hfe-run1s branch July 7, 2024 15:11
@ejona86
Copy link
Collaborator Author

ejona86 commented Jul 7, 2024

Yeah, it was a readability change. The "frequent" checking of v3 was making it harder to read both paths.

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