shave another 50-100ms off zeroing memory
This commit is contained in:
parent
076bea641d
commit
31d83ec058
|
|
@ -446,6 +446,7 @@ internal static class Interpreter
|
|||
}
|
||||
}
|
||||
|
||||
[SkipLocalsInit]
|
||||
public static float[] Evaluate<T>(Instruction[] instructions, int imageSize, InterpreterOptions options = default, float[]? result = null)
|
||||
where T : unmanaged
|
||||
{
|
||||
|
|
@ -515,7 +516,6 @@ internal static class Interpreter
|
|||
}
|
||||
else if (typeof(T) == typeof(Vector<float>))
|
||||
{
|
||||
|
||||
return (T)(object)(Unsafe.As<T, Vector<float>>(ref a) - Unsafe.As<T, Vector<float>>(ref b));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue