Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions BitFaster.Caching/Lfu/CmSketchCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private void EnsureCapacity(long maximumSize)
size = 0;
}

private unsafe int EstimateFrequencyStd(T value)
private int EstimateFrequencyStd(T value)
{
int blockHash = Spread(comparer.GetHashCode(value));
int counterHash = Rehash(blockHash);
Expand Down Expand Up @@ -198,7 +198,7 @@ private unsafe int EstimateFrequencyStd(T value)
return Math.Min(Math.Min(count0, count1), Math.Min(count2, count3));
}

private unsafe void IncrementStd(T value)
private void IncrementStd(T value)
{
int blockHash = Spread(comparer.GetHashCode(value));
int counterHash = Rehash(blockHash);
Expand Down
Loading