Skip to content

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