Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2bbb78c
Change access modifier of BitOperations.IsPow2
deeprobin Sep 6, 2021
eafa631
Add CLSCompliant(false) attribute to BitOperations.IsPow2
deeprobin Sep 6, 2021
4790b58
Add BitOperations.RoundUpToPowerOf2 method for nuint
deeprobin Sep 6, 2021
fecdac6
Add BitOperations.LeadingZeroCount method for nuint
deeprobin Sep 6, 2021
ca63abc
Add BitOperations.Log2 method for nuint
deeprobin Sep 6, 2021
f6e497b
Add BitOperations.PopCount method for nuint
deeprobin Sep 6, 2021
4aaab92
Add BitOperations.TrailingZeroCount for nint and nuint
deeprobin Sep 6, 2021
a46a61b
Add BitOperations.RotateLeft and BitOperations.RotateRight for nuint
deeprobin Sep 6, 2021
7ff6414
Replace Environment.Is64BitProcess check with preprocessor variable T…
deeprobin Sep 7, 2021
22ef58e
Fix formatting
deeprobin Sep 7, 2021
dfdc139
Remove last Environment.Is64BitProcess check
deeprobin Sep 7, 2021
0a70ec5
Add tests
deeprobin Sep 7, 2021
177c8e8
Remove [CLSCompliant(false)] Attribute from BitOperations which use n…
deeprobin Sep 8, 2021
cb93349
Add refs
deeprobin Sep 10, 2021
716e874
Add refs
deeprobin Sep 10, 2021
7f79d99
Fix RotateLeft and RotateRight test
deeprobin Sep 10, 2021
c5a7ae0
Add IgnoreOnArchitectureTheoryAttribute and remove checks for not exi…
deeprobin Sep 11, 2021
87024e7
Replace custom TheoryAttribute with ConditionalTheory
deeprobin Sep 13, 2021
7a826ca
Add unchecked syntax due CS8778
deeprobin Sep 13, 2021
21a6eb3
Fix parameter type in BitOperationsTests.BitOps_RoundUpToPow2_nuint_64
deeprobin Sep 15, 2021
f157dfc
Fix Test values
deeprobin Sep 15, 2021
2baf92c
Fix expectation parameter
deeprobin Sep 16, 2021
21054db
Fix 32-bit expectation
deeprobin Sep 16, 2021
5e89bd3
Fix 32-bit test
deeprobin Sep 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix formatting
  • Loading branch information
deeprobin committed Sep 7, 2021
commit 22ef58eb62166438e374af1a467d9df6032831e9
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ static int SoftwareFallback(ulong value)
public static int PopCount(nuint value)
{
#if TARGET_64BIT
return PopCount((ulong)value);
return PopCount((ulong)value);
#else
return PopCount((uint)value);
#endif
Expand Down