87 references to RotateLeft
System.Collections.Immutable (22)
System\Collections\Frozen\String\Hashing.cs (22)
35hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ src[0]; 39hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ src[0]; 40hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ src[1]; 44hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ src[0]; 45hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ src[1]; 46hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ src[2]; 50hash1 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ ((uint*)src)[0]; 51hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ ((uint*)src)[1]; 61hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ ptrUInt32[0]; 62hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ ptrUInt32[1]; 70hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ *ptrChar++; 99hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ (src[0] | LowercaseChar); 103hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ (src[0] | LowercaseChar); 104hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (src[1] | LowercaseChar); 108hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ (src[0] | LowercaseChar); 109hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (src[1] | LowercaseChar); 110hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (src[2] | LowercaseChar); 114hash1 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ (((uint*)src)[0] | LowercaseUInt32); 115hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ (((uint*)src)[1] | LowercaseUInt32); 125hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (ptrUInt32[0] | LowercaseUInt32); 126hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (ptrUInt32[1] | LowercaseUInt32); 134hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (*ptrChar | LowercaseUInt32);
System.IO.Hashing (8)
System\IO\Hashing\XxHash128.cs (1)
266uint combinedh = BitOperations.RotateLeft(BinaryPrimitives.ReverseEndianness(combinedl), 13);
System\IO\Hashing\XxHash32.State.cs (7)
54BitOperations.RotateLeft(_acc1, 1) + 55BitOperations.RotateLeft(_acc2, 7) + 56BitOperations.RotateLeft(_acc3, 12) + 57BitOperations.RotateLeft(_acc4, 18); 63acc = BitOperations.RotateLeft(acc, 13); 79acc = BitOperations.RotateLeft(acc, 17); 89acc = BitOperations.RotateLeft(acc, 11);
System.Net.Security (3)
src\libraries\Common\src\System\Net\Security\MD4.cs (3)
158a = BitOperations.RotateLeft(a, s); 164a = BitOperations.RotateLeft(a, s); 170a = BitOperations.RotateLeft(a, s);
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
1668(int)BitOperations.RotateLeft((uint)mask, maskIndex * 8);
System.Private.CoreLib (52)
src\libraries\Common\src\Internal\VersionResilientHashCode.cs (2)
171return (int)BitOperations.RotateLeft((uint)value, bitCount); 183return (BitOperations.RotateLeft((hash + queuedValue * 3266489917U/*Prime3*/), 17)) * 668265263U/*Prime4*/;
src\libraries\Common\src\System\Sha1ForNonSecretPurposes.cs (9)
180w[i] = BitOperations.RotateLeft(w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16], 1); 193uint temp = BitOperations.RotateLeft(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.RotateLeft(b, 30); b = a; a = temp; 200uint temp = BitOperations.RotateLeft(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.RotateLeft(b, 30); b = a; a = temp; 207uint temp = BitOperations.RotateLeft(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.RotateLeft(b, 30); b = a; a = temp; 214uint temp = BitOperations.RotateLeft(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.RotateLeft(b, 30); b = a; a = temp;
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
151+ BitOperations.RotateLeft(value & 0xFF00FF00u, 8); // ww yy
src\libraries\System.Private.CoreLib\src\System\HashCode.cs (6)
271return BitOperations.RotateLeft(hash + input * Prime2, 13) * Prime1; 277return BitOperations.RotateLeft(hash + queuedValue * Prime3, 17) * Prime4; 283return BitOperations.RotateLeft(v1, 1) + BitOperations.RotateLeft(v2, 7) + BitOperations.RotateLeft(v3, 12) + BitOperations.RotateLeft(v4, 18);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
309public static int RotateLeft(int value, int rotateAmount) => (int)BitOperations.RotateLeft((uint)value, rotateAmount);
src\libraries\System.Private.CoreLib\src\System\Marvin.cs (5)
214partialResult = RotateLeft(partialResult, 16); 231p0 = RotateLeft(p0, 20); 234p1 = RotateLeft(p1, 9); 237p0 = RotateLeft(p0, 27); 240p1 = RotateLeft(p1, 19);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (21)
865hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ ptr[0]; 866hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ ptr[1]; 872hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ ptr[0]; 896hash1 = BitOperations.RotateLeft(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr); 897hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr + 1); 904hash1 = BitOperations.RotateLeft(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr); 911hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ p1; 915hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr); 925hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ p0; 965hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase); 966hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase); 978hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase); 1014hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase); 1015hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase); 1034hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase); 1035hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase); 1045hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase); 1060hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase); 1097hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (ptr[0] | NormalizeToLowercase); 1098hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (ptr[1] | NormalizeToLowercase); 1104hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (ptr[0] | NormalizeToLowercase);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
2179asciiData = BitOperations.RotateLeft(asciiData, 8);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.Helpers.cs (3)
69value = BitOperations.RotateLeft(value, 1); 74value = BitOperations.RotateLeft(value, 8); 79value = BitOperations.RotateLeft(value, 8);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Helpers.cs (1)
118tempA = BitOperations.RotateLeft(tempA, 16); // = [ 00xxxxxx 00000000 00000000 00000uuu ]
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
304public static uint RotateLeft(uint value, int rotateAmount) => BitOperations.RotateLeft(value, rotateAmount);
src\System\Runtime\CompilerServices\VirtualDispatchHelpers.cs (1)
25_hashCode = (int) ((uint)objectMethodTable + (BitOperations.RotateLeft((uint)classHandle, 5)) + (BitOperations.RotateRight((uint)methodHandle, 5)));
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3285uint rs = BitOperations.RotateLeft((uint)value._sign, rotateAmount);