9faf00533c42 — Michael Johnson 9 months ago
Fix right rotation actually rotating left on .NET Core 3.1 and up
1 files changed, 1 insertions(+), 1 deletions(-)

M src/Core/Implementation/BitwiseExtensions.cs
M src/Core/Implementation/BitwiseExtensions.cs +1 -1
@@ 32,7 32,7 @@ namespace RandN.Implementation
         public static UInt32 RotateRight(this UInt32 original, Int32 amount)
         {
 #if X86_INTRINSICS
-            return BitOperations.RotateLeft(original, amount);
+            return BitOperations.RotateRight(original, amount);
 #else
             return (original >> amount) | (original << (32 - amount));
 #endif