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

Output the carry flag to C #2

Merged
merged 1 commit into from
Jun 4, 2020
Merged

Conversation

josephcsible
Copy link
Contributor

Instead of jumping and maybe negating ret in assembly, pass the carry flag as an output parameter, and do the negation in C if necessary. This will enable better codegen in places that these get inlined.

@josephcsible
Copy link
Contributor Author

josephcsible commented May 24, 2020

This PR and #1 will have a merge conflict with each other. If both of them look good to merge, my preference is that you merge #1 first, and then I'll fix the resulting conflict in this one.

Instead of jumping and maybe negating `ret` in assembly, pass the carry flag as an output parameter, and do the negation in C if necessary. This will enable better codegen in places that these get inlined.
@josephcsible
Copy link
Contributor Author

This is rebased and ready to be merged.

@Cryptogenic Cryptogenic merged commit 641e96f into OpenOrbis:master Jun 4, 2020
@josephcsible josephcsible deleted the patch-2 branch June 4, 2020 21:25
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