Files
dotnet-runtime/src/libraries/System.Runtime/ref
Robin Lindner c00b5fa4d9 Expose nint/nuint overloads for BitOperations (#58733)
* Change access modifier of BitOperations.IsPow2

* Add CLSCompliant(false) attribute to BitOperations.IsPow2

* Add BitOperations.RoundUpToPowerOf2 method for nuint

* Add BitOperations.LeadingZeroCount method for nuint

* Add BitOperations.Log2 method for nuint

* Add BitOperations.PopCount method for nuint

* Add BitOperations.TrailingZeroCount for nint and nuint

* Add BitOperations.RotateLeft and BitOperations.RotateRight for nuint

* Replace Environment.Is64BitProcess check with preprocessor variable TARGET_64BIT and reimplement accidentally removed comment

* Fix formatting

* Remove last Environment.Is64BitProcess check

* Add tests

* Remove [CLSCompliant(false)] Attribute from BitOperations which use nint (not nuint)

* Add refs

* Add refs

* Fix RotateLeft and RotateRight test

* Add IgnoreOnArchitectureTheoryAttribute and remove checks for not existing preprocessor variable

* Replace custom TheoryAttribute with ConditionalTheory

* Add unchecked syntax due CS8778

* Fix parameter type in BitOperationsTests.BitOps_RoundUpToPow2_nuint_64

* Fix Test values

* Fix expectation parameter

* Fix 32-bit expectation

* Fix 32-bit test
2021-09-17 16:31:07 -07:00
..