Skip to content

Implement IBinaryInteger<TSelf>.ReverseBits#131145

Open
huoyaoyuan wants to merge 9 commits into
dotnet:mainfrom
huoyaoyuan:reverse-bits
Open

Implement IBinaryInteger<TSelf>.ReverseBits#131145
huoyaoyuan wants to merge 9 commits into
dotnet:mainfrom
huoyaoyuan:reverse-bits

Conversation

@huoyaoyuan

Copy link
Copy Markdown
Member

Closes #125879

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

}

/// <inheritdoc cref="IBinaryInteger{TSelf}.ReverseBits(TSelf)" />
static BigInteger IBinaryInteger<BigInteger>.ReverseBits(BigInteger value)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though it doesn't make much sense for BigInteger, I'm trying to design a rule that reasonably round-trips, and behaves consistently on 32/64bit and LE/BE platforms.

@huoyaoyuan huoyaoyuan added the community-contribution Indicates that the PR has been added by a community member label Jul 21, 2026
@huoyaoyuan

Copy link
Copy Markdown
Member Author

Manually tagging @dotnet/area-system-numerics as the bot misses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Numerics community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API Proposal]: BitOperations.ReverseBits

1 participant