Beispiel #1
0
        public void TestAddSimd()
        {
            var first    = this.GetInput();
            var second   = this.GetInput();
            var expected = new int[first.Length];

            for (int i = 0; i < first.Length; i++)
            {
                expected[i] = first[i] + second[i];
            }

            var result = new int[first.Length];

            IntExtensions.AddSimd(first, second, result);

            Assert.Equal(expected, result);
        }