Created
March 12, 2021 15:27
-
-
Save Const-me/ce7f7677cbb9f43efe74aeeadb75deb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static class C | |
{ | |
static int div2(int i) | |
{ | |
return i / 2; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Core CLR v5.0.321.7212 on amd64 | |
C.div2(Int32) | |
L0000: mov eax, ecx | |
L0002: shr eax, 0x1f | |
L0005: add eax, ecx | |
L0007: sar eax, 1 | |
L0009: ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"target": "JIT ASM", | |
"mode": "Release", | |
"branch": "core-x64" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment