4 references to HashShiftPerElement
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\RabinKarp.cs (4)
53
_hashUpdateMultiplier = (nuint)1 << ((minimumLength - 1) *
HashShiftPerElement
);
76
hash = (hash <<
HashShiftPerElement
) + value[i];
125
hash = (hash <<
HashShiftPerElement
) + TCaseSensitivity.TransformInput(Unsafe.Add(ref current, i));
154
hash = ((hash - (previous * _hashUpdateMultiplier)) <<
HashShiftPerElement
) + next;