71 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)
263
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)
156
a = BitOperations.
RotateLeft
(a, s);
162
a = BitOperations.
RotateLeft
(a, s);
168
a = BitOperations.
RotateLeft
(a, s);
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
1500
(int)BitOperations.
RotateLeft
((uint)mask, maskIndex * 8);
System.Private.CoreLib (37)
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)
303
public static int RotateLeft(int value, int rotateAmount) => (int)BitOperations.
RotateLeft
((uint)value, rotateAmount);
src\libraries\System.Private.CoreLib\src\System\Marvin.cs (5)
207
partialResult = BitOperations.
RotateLeft
(partialResult, 16);
224
p0 = BitOperations.
RotateLeft
(p0, 20);
227
p1 = BitOperations.
RotateLeft
(p1, 9);
230
p0 = BitOperations.
RotateLeft
(p0, 27);
233
p1 = BitOperations.
RotateLeft
(p1, 19);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (9)
833
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ ptr[0];
834
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ ptr[1];
841
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ ptr[0];
877
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (p0 | NormalizeToLowercase);
878
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p1 | NormalizeToLowercase);
891
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (p0 | NormalizeToLowercase);
923
hash1 = (BitOperations.
RotateLeft
(hash1, 5) + hash1) ^ (ptr[0] | NormalizeToLowercase);
924
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (ptr[1] | NormalizeToLowercase);
930
hash2 = (BitOperations.
RotateLeft
(hash2, 5) + hash2) ^ (ptr[0] | NormalizeToLowercase);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
2144
asciiData = BitOperations.
RotateLeft
(asciiData, 8);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.Helpers.cs (3)
63
value = BitOperations.
RotateLeft
(value, 1);
68
value = BitOperations.
RotateLeft
(value, 8);
73
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)
298
public static uint RotateLeft(uint value, int rotateAmount) => BitOperations.
RotateLeft
(value, rotateAmount);