Esempio n. 1
0
        public void TestMultiplySimd()
        {
            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.MultiplySimd(first, second, result);

            Assert.Equal(expected, result);
        }