예제 #1
0
        public void TestMaxSimd()
        {
            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] ? first[i] : second[i];
            }

            var result = new int[first.Length];

            IntExtensions.MaxSimd(first, second, result);

            Assert.Equal(expected, result);
        }