mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
* 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