Skip to content

Commit ca3b8da

Browse files
authored
zero (#295)
1 parent aa4aa07 commit ca3b8da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BitFaster.Caching/Lfu/CmSketch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private unsafe void IncrementAvx(T value)
285285

286286
// j == index
287287
index = Avx2.ShiftLeftLogical(index, 2);
288-
Vector256<long> offsetLong = Vector256.Create(index, Vector128.Create(0)).AsInt64();
288+
Vector256<long> offsetLong = Vector256.Create(index, Vector128<int>.Zero).AsInt64();
289289

290290
Vector256<int> permuteMask = Vector256.Create(0, 4, 1, 5, 2, 5, 3, 7);
291291
offsetLong = Avx2.PermuteVar8x32(offsetLong.AsInt32(), permuteMask).AsInt64();

0 commit comments

Comments
 (0)