some chore

This commit is contained in:
Youmu Liu
2026-03-12 18:13:41 +08:00
parent 0c1887d8f8
commit c1c1a16627
5 changed files with 120 additions and 112 deletions
@@ -40,21 +40,6 @@ namespace StgSharp.HighPerformance.Memory
public partial class L4
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private unsafe void AgeAll()
{
Vector128<byte> one = Vector128.Create((byte)0x01);
Vector128<byte> max = Vector128.Create((byte)0x03);
byte* p = (byte*)_eviction;
for (int i = 0; i < CacheLineCount; i += 16)
{
Vector128<byte> v = Sse2.LoadVector128(p + i);
v = Sse2.AddSaturate(v, one);
v = Sse2.Min(v, max);
Sse2.Store(p + i, v);
}
}
[InlineArray(CacheLineCount)]
private struct EvictionArray
{