-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Iterative generic math changes to match API review (#69391)
* Change GetShortestBitLength to return int and add WriteBigEndian APIs * Add WriteExponentBigEndian and WriteSignificandBigEndian APIs * Update System.Char to explicitly implement the numeric interfaces * Ensure BigInteger.TryWriteBigEndian correctly offsets the address * Fixing two usages of `var` in decimal * Ensure lo64 is ulong and hi32 is uint * Ensure Int128/UInt128 implement TryWriteBigEndian and return `int` for `GetShortestBitLength` * Ensure that `GetByteCount` and `GetShortestBitLength` correctly handle the one's complement format * Ensure the ReverseEndianness calls in TryWrite* for Int128/UInt128 are correct * Ensure BigInteger.TryWriteLittleEndian has a correct assert
- Loading branch information
1 parent
7bb207c
commit 0c6d412
Showing
45 changed files
with
2,510 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.