-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Units for BitOps.TrailingZeroCount #35193
Conversation
|
@stephentoub it's failing due to this line in the
[Edit] It needs that line for access to |
|
Tests are failing due to this code in public static int TrailingZeroCount(uint value)
....
return Unsafe.AddByteOffset(
ref MemoryMarshal.GetReference(s_TrailingZeroCountDeBruijn),
(IntPtr)(((value & -value) * 0x077CB531u) >> 27)); // <--- (IntPtr) |
Your workaround of adding an empty namespace to the test file seems fine. Thanks. |
|
Jumped the gun. These won't pass until the sync from |
| <Compile Include="$(CommonPath)\System\Security\IdentityHelper.cs"> | ||
| <Link>Common\System\Security\IdentityHelper.cs</Link> | ||
| </Compile> | ||
| <Compile Include="$(CommonPath)\CoreLib\System\BitOps.cs"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this once BitOps is exposed
| namespace Internal.Runtime.CompilerServices | ||
| { | ||
| // Dummy namespace needed for compilation of BitOps | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this once BitOps is exposed
|
@dotnet-bot test corefx-ci (Linux x64_Release) please |
|
/azp run corefx-ci |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp test corefx-ci (Linux x64_Release) |
This comment has been minimized.
This comment has been minimized.
|
/azp run corefx-ci (Linux x64_Release) |
|
No pipelines are associated with this pull request. |
|
Can we merge? |
|
Thanks for approving Jan, LGTM? |
Commit migrated from dotnet/corefx@23f36ed
Units for
BitOpsfrom related PRs: LZCNT, LOG2, TZCNT, ROTL/R, POPCNTcc @tannergooding, @jkotas