Skip to content

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

Open
murmour wants to merge 1 commit into
HaxeFoundation:masterfrom
murmour:master
Open

JIT: fix USHR, optimize SHR, AND, OR, XOR#177
murmour wants to merge 1 commit into
HaxeFoundation:masterfrom
murmour:master

Conversation

@murmour

@murmour murmour commented Jan 10, 2018

Copy link
Copy Markdown
  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

Simn commented Mar 27, 2023

Copy link
Copy Markdown
Member

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

murmour commented Mar 27, 2023

Copy link
Copy Markdown
Author

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