This repository was archived by the owner on Oct 14, 2025. It is now read-only.
Commit 71583df
committed
Utilize _BitScanReverse in Visual Studio
_BitScanReverse is documented here:
https://msdn.microsoft.com/en-us/library/fbxyd7zd.aspx
This improves speed of a VS2015 x64 build by around 8%.
It's slightly slower than __lzcnt, but compatible with old cpu.1 parent 16e0741 commit 71583df
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | | - | |
40 | 43 | | |
| 44 | + | |
41 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | | - | |
44 | | - | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
0 commit comments