106 references to RotateLeft
ILCompiler.Compiler (7)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (5)
58
hash = (hash + BitOperations.
RotateLeft
(hash, 5)) ^ *(uint*)a;
63
hash = (hash + BitOperations.
RotateLeft
(hash, 5)) ^ *(ushort*)a;
68
hash = (hash + BitOperations.
RotateLeft
(hash, 5)) ^ *a;
70
hash += BitOperations.
RotateLeft
(hash, 7);
71
hash += BitOperations.
RotateLeft
(hash, 15);
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (2)
171
return (int)BitOperations.
RotateLeft
((uint)value, bitCount);
183
return (BitOperations.
RotateLeft
((hash + queuedValue * 3266489917U/*Prime3*/), 17)) * 668265263U/*Prime4*/;
ILCompiler.ReadyToRun (9)
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (2)
295
uint result = BitOperations.
RotateLeft
(s[1] * 5, 7) * 9;
304
s[3] = BitOperations.
RotateLeft
(s[3], 11);
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (5)
58
hash = (hash + BitOperations.
RotateLeft
(hash, 5)) ^ *(uint*)a;
63
hash = (hash + BitOperations.
RotateLeft
(hash, 5)) ^ *(ushort*)a;
68
hash = (hash + BitOperations.
RotateLeft
(hash, 5)) ^ *a;
70
hash += BitOperations.
RotateLeft
(hash, 7);
71
hash += BitOperations.
RotateLeft
(hash, 15);
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (2)
171
return (int)BitOperations.
RotateLeft
((uint)value, bitCount);
183
return (BitOperations.
RotateLeft
((hash + queuedValue * 3266489917U/*Prime3*/), 17)) * 668265263U/*Prime4*/;
ILCompiler.TypeSystem (2)
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (2)
171
return (int)BitOperations.
RotateLeft
((uint)value, bitCount);
183
return (BitOperations.
RotateLeft
((hash + queuedValue * 3266489917U/*Prime3*/), 17)) * 668265263U/*Prime4*/;
Microsoft.NET.StringTools (1)
InternableString.cs (1)
391
return System.Numerics.BitOperations.
RotateLeft
(value, offset);
System.Collections.Immutable (22)
System\Collections\Frozen\String\Hashing.cs (22)
36
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ src[0];
40
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ src[0];
41
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ src[1];
45
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ src[0];
46
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ src[1];
47
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ src[2];
51
hash1 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ Unsafe.ReadUnaligned<uint>(src);
52
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ Unsafe.ReadUnaligned<uint>(src + 2);
62
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ Unsafe.ReadUnaligned<uint>(ptr);
63
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ Unsafe.ReadUnaligned<uint>(ptr + 2);
70
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ *ptr++;
99
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (src[0] | LowercaseChar);
103
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (src[0] | LowercaseChar);
104
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (src[1] | LowercaseChar);
108
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (src[0] | LowercaseChar);
109
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (src[1] | LowercaseChar);
110
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (src[2] | LowercaseChar);
114
hash1 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (Unsafe.ReadUnaligned<uint>(src) | LowercaseUInt32);
115
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (Unsafe.ReadUnaligned<uint>(src + 2) | LowercaseUInt32);
125
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (Unsafe.ReadUnaligned<uint>(ptr) | LowercaseUInt32);
126
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (Unsafe.ReadUnaligned<uint>(ptr + 2) | LowercaseUInt32);
133
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (*ptr | LowercaseUInt32);
System.IO.Hashing (8)
System\IO\Hashing\XxHash128.cs (1)
266
uint combinedh = BitOperations.
RotateLeft
(BinaryPrimitives.ReverseEndianness(combinedl), 13);
System\IO\Hashing\XxHash32.State.cs (7)
54
BitOperations.
RotateLeft
(_acc1, 1) +
55
BitOperations.
RotateLeft
(_acc2, 7) +
56
BitOperations.
RotateLeft
(_acc3, 12) +
57
BitOperations.
RotateLeft
(_acc4, 18);
63
acc = BitOperations.
RotateLeft
(acc, 13);
79
acc = BitOperations.
RotateLeft
(acc, 17);
89
acc = BitOperations.
RotateLeft
(acc, 11);
System.Net.Security (3)
src\runtime\src\libraries\Common\src\System\Net\Security\MD4.cs (3)
158
a = BitOperations.
RotateLeft
(a, s);
164
a = BitOperations.
RotateLeft
(a, s);
170
a = 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)
180
w[i] = BitOperations.
RotateLeft
(w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16], 1);
193
uint temp = BitOperations.
RotateLeft
(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.
RotateLeft
(b, 30); b = a; a = temp;
200
uint temp = BitOperations.
RotateLeft
(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.
RotateLeft
(b, 30); b = a; a = temp;
207
uint temp = BitOperations.
RotateLeft
(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.
RotateLeft
(b, 30); b = a; a = temp;
214
uint 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)
270
return BitOperations.
RotateLeft
(hash + input * Prime2, 13) * Prime1;
276
return BitOperations.
RotateLeft
(hash + queuedValue * Prime3, 17) * Prime4;
282
return 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)
314
public 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)
214
partialResult =
RotateLeft
(partialResult, 16);
231
p0 =
RotateLeft
(p0, 20);
234
p1 =
RotateLeft
(p1, 9);
237
p0 =
RotateLeft
(p0, 27);
240
p1 =
RotateLeft
(p1, 19);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (21)
784
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ ptr[0];
785
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ ptr[1];
791
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ ptr[0];
815
hash1 = BitOperations.
RotateLeft
(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr);
816
hash2 = BitOperations.
RotateLeft
(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr + 1);
823
hash1 = BitOperations.
RotateLeft
(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr);
830
hash2 = BitOperations.
RotateLeft
(hash2, 5) + hash2 ^ p1;
834
hash2 = BitOperations.
RotateLeft
(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr);
844
hash2 = BitOperations.
RotateLeft
(hash2, 5) + hash2 ^ p0;
884
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase);
885
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase);
897
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase);
933
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase);
934
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase);
953
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase);
954
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase);
964
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase);
979
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase);
1016
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (ptr[0] | NormalizeToLowercase);
1017
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (ptr[1] | NormalizeToLowercase);
1023
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (ptr[0] | NormalizeToLowercase);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
2184
asciiData = BitOperations.
RotateLeft
(asciiData, 8);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.Helpers.cs (3)
69
value = BitOperations.
RotateLeft
(value, 1);
74
value = BitOperations.
RotateLeft
(value, 8);
79
value = BitOperations.
RotateLeft
(value, 8);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Helpers.cs (1)
118
tempA = BitOperations.
RotateLeft
(tempA, 16); // = [ 00xxxxxx 00000000 00000000 00000uuu ]
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
327
public 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)
171
return (int)BitOperations.
RotateLeft
((uint)value, bitCount);
183
return (BitOperations.
RotateLeft
((hash + queuedValue * 3266489917U/*Prime3*/), 17)) * 668265263U/*Prime4*/;
System.Private.TypeLoader (2)
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (2)
171
return (int)BitOperations.
RotateLeft
((uint)value, bitCount);
183
return (BitOperations.
RotateLeft
((hash + queuedValue * 3266489917U/*Prime3*/), 17)) * 668265263U/*Prime4*/;