106 references to RotateLeft
ILCompiler.Compiler (7)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (5)
58hash = (hash + BitOperations.RotateLeft(hash, 5)) ^ *(uint*)a; 63hash = (hash + BitOperations.RotateLeft(hash, 5)) ^ *(ushort*)a; 68hash = (hash + BitOperations.RotateLeft(hash, 5)) ^ *a; 70hash += BitOperations.RotateLeft(hash, 7); 71hash += BitOperations.RotateLeft(hash, 15);
src\runtime\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*/;
ILCompiler.ReadyToRun (9)
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (2)
295uint result = BitOperations.RotateLeft(s[1] * 5, 7) * 9; 304s[3] = BitOperations.RotateLeft(s[3], 11);
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (5)
58hash = (hash + BitOperations.RotateLeft(hash, 5)) ^ *(uint*)a; 63hash = (hash + BitOperations.RotateLeft(hash, 5)) ^ *(ushort*)a; 68hash = (hash + BitOperations.RotateLeft(hash, 5)) ^ *a; 70hash += BitOperations.RotateLeft(hash, 7); 71hash += BitOperations.RotateLeft(hash, 15);
src\runtime\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*/;
ILCompiler.TypeSystem (2)
src\runtime\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*/;
Microsoft.NET.StringTools (1)
InternableString.cs (1)
391return System.Numerics.BitOperations.RotateLeft(value, offset);
System.Collections.Immutable (22)
System\Collections\Frozen\String\Hashing.cs (22)
36hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ src[0]; 40hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ src[0]; 41hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ src[1]; 45hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ src[0]; 46hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ src[1]; 47hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ src[2]; 51hash1 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ Unsafe.ReadUnaligned<uint>(src); 52hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ Unsafe.ReadUnaligned<uint>(src + 2); 62hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ Unsafe.ReadUnaligned<uint>(ptr); 63hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ Unsafe.ReadUnaligned<uint>(ptr + 2); 70hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ *ptr++; 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) ^ (Unsafe.ReadUnaligned<uint>(src) | LowercaseUInt32); 115hash2 = (BitOperations.RotateLeft(Hash1Start, 5) + Hash1Start) ^ (Unsafe.ReadUnaligned<uint>(src + 2) | LowercaseUInt32); 125hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (Unsafe.ReadUnaligned<uint>(ptr) | LowercaseUInt32); 126hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (Unsafe.ReadUnaligned<uint>(ptr + 2) | LowercaseUInt32); 133hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (*ptr | 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\runtime\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)
1694(int)BitOperations.RotateLeft((uint)mask, maskIndex * 8);
System.Private.CoreLib (49)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
151+ BitOperations.RotateLeft(value & 0xFF00FF00u, 8); // ww yy
src\runtime\src\libraries\System.Private.CoreLib\src\System\HashCode.cs (6)
270return BitOperations.RotateLeft(hash + input * Prime2, 13) * Prime1; 276return BitOperations.RotateLeft(hash + queuedValue * Prime3, 17) * Prime4; 282return BitOperations.RotateLeft(v1, 1) + BitOperations.RotateLeft(v2, 7) + BitOperations.RotateLeft(v3, 12) + BitOperations.RotateLeft(v4, 18);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
314public static int RotateLeft(int value, int rotateAmount) => (int)BitOperations.RotateLeft((uint)value, rotateAmount);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (21)
784hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ ptr[0]; 785hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ ptr[1]; 791hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ ptr[0]; 815hash1 = BitOperations.RotateLeft(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr); 816hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr + 1); 823hash1 = BitOperations.RotateLeft(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr); 830hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ p1; 834hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr); 844hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ p0; 884hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase); 885hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase); 897hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase); 933hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase); 934hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase); 953hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase); 954hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase); 964hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase); 979hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase); 1016hash1 = (BitOperations.RotateLeft(hash1, 5) + hash1) ^ (ptr[0] | NormalizeToLowercase); 1017hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (ptr[1] | NormalizeToLowercase); 1023hash2 = (BitOperations.RotateLeft(hash2, 5) + hash2) ^ (ptr[0] | NormalizeToLowercase);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
2184asciiData = BitOperations.RotateLeft(asciiData, 8);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Helpers.cs (1)
118tempA = BitOperations.RotateLeft(tempA, 16); // = [ 00xxxxxx 00000000 00000000 00000uuu ]
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
327public static uint RotateLeft(uint value, int rotateAmount) => BitOperations.RotateLeft(value, rotateAmount);
System.Private.StackTraceMetadata (2)
src\runtime\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*/;
System.Private.TypeLoader (2)
src\runtime\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*/;