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

Bit twiddle tweaks #934

Merged
merged 5 commits into from
Jan 10, 2024
Merged

Bit twiddle tweaks #934

merged 5 commits into from
Jan 10, 2024

Conversation

vext01
Copy link
Contributor

@vext01 vext01 commented Jan 9, 2024

This hopefully addresses something we discussed at the end of last year: that all bit-twiddling computations for the JIT IR should (where possible) be defined as constants at the top of the file with as little duplication in the main body of code as possible.

While here, I've also tweaked some related bits.

All commits stand alone.

No functional change. Let me know what you think.

These are constants for use when we are shifting a field in to (or out
of) position from (or to) the LSB.
This is a constant that applies only to short instructions, so name it
so.
@ltratt ltratt added this pull request to the merge queue Jan 10, 2024
Merged via the queue into ykjit:master with commit b79409b Jan 10, 2024
2 checks passed
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.

None yet

3 participants