find solution to combinition of predictor and queue
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
// -----------------------------------------------------------------------
|
||||
// file="MatrixPredictor"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload
|
||||
// Copyright (c) Nitload. All rights reserved.
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -34,26 +34,16 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp.Mathematics.Numeric.Runtime
|
||||
{
|
||||
public abstract class MatrixPredictor<TSelf> : IPrefetchPredict
|
||||
where TSelf : MatrixPredictor<TSelf>
|
||||
public abstract class MatrixPredictor<TSelf> : IPrefetchPredict where TSelf: MatrixPredictor<TSelf>
|
||||
{
|
||||
|
||||
public abstract bool Predict(
|
||||
Span<CacheLinePrediction> node,
|
||||
out int count
|
||||
);
|
||||
protected MatrixPredictor() { }
|
||||
|
||||
public abstract void Prefetch(
|
||||
nuint origin,
|
||||
ulong policy,
|
||||
Span<byte> cache
|
||||
);
|
||||
public abstract bool Predict(Span<CacheLinePrediction> node, out int count);
|
||||
|
||||
public abstract void WriteBack(
|
||||
nuint origin,
|
||||
ulong policy,
|
||||
ReadOnlySpan<byte> cache
|
||||
);
|
||||
public abstract void Prefetch(nuint origin, ulong policy, Span<byte> cache);
|
||||
|
||||
public abstract void WriteBack(nuint origin, ulong policy, ReadOnlySpan<byte> cache);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user