some chore
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user