Expose nint/nuint overloads for BitOperations#58733
Conversation
src/libraries/System.Private.CoreLib/src/System/Numerics/BitOperations.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Numerics/BitOperations.cs
Outdated
Show resolved
Hide resolved
…ARGET_64BIT and reimplement accidentally removed comment
src/libraries/System.Private.CoreLib/src/System/Numerics/BitOperations.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Numerics/BitOperations.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Numerics/BitOperations.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Numerics/BitOperations.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Numerics/BitOperations.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Numerics/BitOperations.cs
Show resolved
Hide resolved
|
Why does the Test Runner say that the methods do not exist? |
@deeprobin Don't forget to update the ref assembly (https://raw.githubusercontent.com/dotnet/runtime/main/src/libraries/System.Runtime/ref/System.Runtime.cs). Easiest way to update it would probably be to look at how the other |
|
Better still to use the tool so there's no extra diffs: https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/updating-ref-source.md |
@danmoseley |
@GrabYourPitchforks Thank you, I manually updated the ref assembly in the last commit. |
src/libraries/System.Runtime.Extensions/tests/System/Numerics/BitOperationsTests.cs
Show resolved
Hide resolved
src/libraries/System.Runtime.Extensions/tests/System/Numerics/BitOperationsTests.cs
Show resolved
Hide resolved
…sting preprocessor variable
Try using the dotnet at the root of the repo. It pulls down and uses the correct one. Alternatively it should fix it if you install the RC1 SDK |
|
@pgovind could you give this a secondary review and merge if everything looks good? |
pgovind
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the work here @deeprobin !
|
I'm glad to hear that :). |
Description
Hello everybody, in this pull request I am implementing the proposed API to #54390 by @tannergooding.
Feel free to leave your feedback :).
Proposed API