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