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

Register unions #98

Merged
merged 4 commits into from
Mar 23, 2024
Merged

Register unions #98

merged 4 commits into from
Mar 23, 2024

Conversation

dbalsom
Copy link
Owner

@dbalsom dbalsom commented Mar 23, 2024

This PR changes the general A/B/C/D registers a union type. Benchmarking shows there is negligible difference under optimization but debug builds are faster.

The resulting code is simpler however, despite requiring unsafe for the first time in MartyPC.

@dbalsom dbalsom merged commit 0c89dfe into version_0_2_0_rc0 Mar 23, 2024
4 checks passed
@dbalsom dbalsom deleted the register_unions branch March 23, 2024 13:36
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