diff --git a/X10D/src/Collections/ByteExtensions.cs b/X10D/src/Collections/ByteExtensions.cs index 6fde587..96bf23c 100644 --- a/X10D/src/Collections/ByteExtensions.cs +++ b/X10D/src/Collections/ByteExtensions.cs @@ -61,11 +61,11 @@ public static class ByteExtensions ); var mask1 = Vector128.Create((byte)0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1); - var vec = Vector128.Create(value).AsByte(); - var shuffle = Ssse3.Shuffle(vec, mask1); - var and = Sse2.AndNot(shuffle, mask2); - var cmp = Sse2.CompareEqual(and, Vector128.Zero); - var correctness = Sse2.And(cmp, Vector128.Create((byte)0x01)); + Vector128 vec = Vector128.Create(value).AsByte(); + Vector128 shuffle = Ssse3.Shuffle(vec, mask1); + Vector128 and = Sse2.AndNot(shuffle, mask2); + Vector128 cmp = Sse2.CompareEqual(and, Vector128.Zero); + Vector128 correctness = Sse2.And(cmp, Vector128.Create((byte)0x01)); Sse2.StoreScalar((long*)pDestination, correctness.AsInt64()); }