Skip to content

Instantly share code, notes, and snippets.

public static int IntrinsicTest(byte[] lhs, byte[] rhs)
{
byte ths = 16;
Intrinsics.Vector128<byte> threshold = Intrinsics.Vector128.Create(ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths);
byte bit = 1;
var VECTOR_ONE = Intrinsics.Vector128.Create(bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit);
var result = new Intrinsics.Vector128<int>();
var i = 0;
for (i = 0; i <= lhs.Length - 16; i += 16)
public static int IntrinsicTest(byte[] lhs, byte[] rhs)
{
byte ths = 16;
Intrinsics.Vector128<byte> threshold = Intrinsics.Vector128.Create(ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths, ths);
byte bit = 1;
var VECTOR_ONE = Intrinsics.Vector128.Create(bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit, bit);
var result = new Intrinsics.Vector128<uint>();
var i = 0;
for (i = 0; i <= lhs.Length - 16; i += 16)