-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Expose nint/nuint overloads for BitOperations #58733
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
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? |
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.
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