Exemplo n.º 1
0
        public static Vector256 <T> AndNot <T>(Vector256 <T> left, Vector256 <T> right) where T : struct
        {
            if (typeof(T) == typeof(float))
            {
                if (Avx.IsSupported)
                {
                    return(Avx.AndNot(left.AsSingle(), right.AsSingle()).As <float, T>());
                }
            }

            if (typeof(T) == typeof(double))
            {
                if (Avx.IsSupported)
                {
                    return(Avx.AndNot(left.AsDouble(), right.AsDouble()).As <double, T>());
                }
            }

            if (Avx.IsSupported)
            {
                return(Avx.AndNot(left.AsSingle(), right.AsSingle()).As <float, T>());
            }

            return(SoftwareFallbacks.AndNot_Software(left, right));
        }
Exemplo n.º 2
0
        public static Vector4UInt32 AndNot(Vector4UInt32Param1_3 left, Vector4UInt32Param1_3 right)
        {
            if (Sse2.IsSupported)
            {
                return(Sse2.AndNot(left, right));
            }

            return(SoftwareFallbacks.AndNot_Software(left, right));
        }
Exemplo n.º 3
0
        public static Vector4Single AndNot(Vector4SingleParam1_3 left, Vector4SingleParam1_3 right)
        {
            if (Sse.IsSupported)
            {
                return(Sse.AndNot(left, right));
            }

            return(SoftwareFallbacks.AndNot_Software(left, right));
        }