86 references to RotateLeft
System.Collections.Immutable (22)
System\Collections\Frozen\String\Hashing.cs (22)
34
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ src[0];
38
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ src[0];
39
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ src[1];
43
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ src[0];
44
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ src[1];
45
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ src[2];
49
hash1 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ ((uint*)src)[0];
50
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ ((uint*)src)[1];
60
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ ptrUInt32[0];
61
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ ptrUInt32[1];
69
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ *ptrChar++;
98
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (src[0] | LowercaseChar);
102
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (src[0] | LowercaseChar);
103
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (src[1] | LowercaseChar);
107
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (src[0] | LowercaseChar);
108
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (src[1] | LowercaseChar);
109
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (src[2] | LowercaseChar);
113
hash1 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (((uint*)src)[0] | LowercaseUInt32);
114
hash2 = (BitOperations.
RotateLeft
(Hash1Start, 5) + Hash1Start) ^ (((uint*)src)[1] | LowercaseUInt32);
124
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (ptrUInt32[0] | LowercaseUInt32);
125
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (ptrUInt32[1] | LowercaseUInt32);
133
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (*ptrChar | 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\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)
1680
(int)BitOperations.
RotateLeft
((uint)mask, maskIndex * 8);
System.Private.CoreLib (52)
src\libraries\Common\src\Internal\VersionResilientHashCode.cs (2)
118
return (int)BitOperations.
RotateLeft
((uint)value, bitCount);
130
return (BitOperations.
RotateLeft
((hash + queuedValue * 3266489917U/*Prime3*/), 17)) * 668265263U/*Prime4*/;
src\libraries\Common\src\System\Sha1ForNonSecretPurposes.cs (9)
112
_w[i] = BitOperations.
RotateLeft
(_w[i - 3] ^ _w[i - 8] ^ _w[i - 14] ^ _w[i - 16], 1);
125
uint temp = BitOperations.
RotateLeft
(a, 5) + f + e + k + _w[i]; e = d; d = c; c = BitOperations.
RotateLeft
(b, 30); b = a; a = temp;
132
uint temp = BitOperations.
RotateLeft
(a, 5) + f + e + k + _w[i]; e = d; d = c; c = BitOperations.
RotateLeft
(b, 30); b = a; a = temp;
139
uint temp = BitOperations.
RotateLeft
(a, 5) + f + e + k + _w[i]; e = d; d = c; c = BitOperations.
RotateLeft
(b, 30); b = a; a = temp;
146
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\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)
271
return BitOperations.
RotateLeft
(hash + input * Prime2, 13) * Prime1;
277
return BitOperations.
RotateLeft
(hash + queuedValue * Prime3, 17) * Prime4;
283
return 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)
309
public static int RotateLeft(int value, int rotateAmount) => (int)BitOperations.
RotateLeft
((uint)value, rotateAmount);
src\libraries\System.Private.CoreLib\src\System\Marvin.cs (5)
213
partialResult =
RotateLeft
(partialResult, 16);
230
p0 =
RotateLeft
(p0, 20);
233
p1 =
RotateLeft
(p1, 9);
236
p0 =
RotateLeft
(p0, 27);
239
p1 =
RotateLeft
(p1, 19);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (21)
846
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ ptr[0];
847
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ ptr[1];
853
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ ptr[0];
877
hash1 = BitOperations.
RotateLeft
(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr);
878
hash2 = BitOperations.
RotateLeft
(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr + 1);
885
hash1 = BitOperations.
RotateLeft
(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr);
892
hash2 = BitOperations.
RotateLeft
(hash2, 5) + hash2 ^ p1;
896
hash2 = BitOperations.
RotateLeft
(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr);
906
hash2 = BitOperations.
RotateLeft
(hash2, 5) + hash2 ^ p0;
946
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase);
947
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase);
959
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase);
995
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase);
996
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase);
1015
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase);
1016
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase);
1026
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase);
1041
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase);
1078
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (ptr[0] | NormalizeToLowercase);
1079
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (ptr[1] | NormalizeToLowercase);
1085
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (ptr[0] | NormalizeToLowercase);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
2179
asciiData = BitOperations.
RotateLeft
(asciiData, 8);
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\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Helpers.cs (1)
118
tempA = BitOperations.
RotateLeft
(tempA, 16); // = [ 00xxxxxx 00000000 00000000 00000uuu ]
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
304
public 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)));