예제 #1
0
 private static Vector2b EqualsImpl(Vector2b a, Vector2b b)
 {
     if (Sse2.IsSupported)
     {
         return((Vector2b)Sse2.CompareEqual((Vector128 <byte>)a, (Vector128 <byte>)b));
     }
     else
     {
예제 #2
0
 static Vector2b SoftwareFallback(Vector2b a0, Vector2b b0) => new Vector2b(a0.X == b0.X, a0.Y == b0.Y);
예제 #3
0
 public static bool Any(Vector2b a) => a.X || a.Y;
예제 #4
0
 public static bool All(Vector2b a) => a.X && a.Y;