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

Use unsigned division for IndexOf result calculations #83612

Merged
merged 1 commit into from
Mar 18, 2023

Conversation

MihaZupan
Copy link
Member

Example diffs:

-mov       rcx,rax	
-shr       rcx,3F	
-add       rax,rcx	
-sar       rax,1
+shr       rax,1

Besides nicer diffs, I'm not seeing any execution time changes.

@MihaZupan MihaZupan added this to the 8.0.0 milestone Mar 17, 2023
@MihaZupan MihaZupan self-assigned this Mar 17, 2023
@ghost
Copy link

ghost commented Mar 17, 2023

Tagging subscribers to this area: @dotnet/area-system-memory
See info in area-owners.md if you want to be subscribed.

Issue Details

Example diffs:

-mov       rcx,rax	
-shr       rcx,3F	
-add       rax,rcx	
-sar       rax,1
+shr       rax,1

Besides nicer diffs, I'm not seeing any execution time changes.

Author: MihaZupan
Assignees: MihaZupan
Labels:

area-System.Memory

Milestone: 8.0.0

@xtqqczze
Copy link
Contributor

@MihaZupan I have a branch for this, but you beat me to it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants