TL; DR:为什么包装System.Numerics.Vectors类型昂贵,有什么我可以做的呢? 考虑下面的代码: [MethodImpl(MethodImplOptions.NoInlining)]
private static long GetIt(long a, long b)
{
var x = AddThem(a, b);
return x;
}
pri
我有下面的C#代码在释放模式试图基准: using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication54
我正在运行一些使用System.Numerics.Vector<T>的C#代码,但据我所知我没有得到SIMD内在函数的全部好处。我在Update 1中使用Visual Studio Community 2015,而我的clrjit.dll是v4.6.1063.1。 我在实现AVX指令集扩展的Intel Core i5-3337U Processor上运行。因此,我认为,我应该能够在256位寄存器上