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

JIT: fix USHR, optimize SHR, AND, OR, XOR #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

murmour
Copy link

@murmour murmour commented Jan 10, 2018

  1. USHR(-1, -1) wrongly produced -1;
  2. The best_int check is redundant for all bitwise ops except SHL;
  3. SHR, USHR, AND, OR, XOR performed unnecessary tag bit juggling.

@murmour murmour force-pushed the master branch 2 times, most recently from 657245f to ff36dcb Compare January 14, 2018 13:54
1) USHR(-1, -1) wrongly produced -1;
2) The "best_int" check is redundant for all bitwise ops except SHL;
3) SHR, USHR, AND, OR, XOR performed unnecessary tag bit juggling.
@Simn
Copy link
Member

Simn commented Mar 27, 2023

Hmm, this looks pretty good actually for the USHR change... but I'm not brave enough to merge it. Will let it sit open for now.

@murmour
Copy link
Author

murmour commented Mar 27, 2023

Just an anecdote: I've been using this code in production for 5+ years, with zero problems.

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