Commit 01628bb1 authored by Marc Gravell's avatar Marc Gravell

add more indirection for the numerics check, because... IL

parent 6ff3c970
......@@ -971,7 +971,7 @@ private static void CheckNumericsVectors()
{
try
{
DoNothingWith(System.Numerics.Vector.IsHardwareAccelerated, System.Numerics.Vector<byte>.Count);
CheckNumericsVectorsImpl();
}
catch (Exception ex)
{
......@@ -985,6 +985,12 @@ private static void CheckNumericsVectors()
}
}
[MethodImpl(MethodImplOptions.NoInlining)]
private static void CheckNumericsVectorsImpl()
{
DoNothingWith(System.Numerics.Vector.IsHardwareAccelerated, System.Numerics.Vector<byte>.Count);
}
[MethodImpl(MethodImplOptions.NoInlining)]
#pragma warning disable RCS1163 // Unused parameter.
private static void DoNothingWith(bool b, int i) { }
#pragma warning restore RCS1163 // Unused parameter.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment