101 references to Zero
System.Numerics.Tensors (40)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (3)
79typeof(T) == typeof(float) ? Vector512.EqualsAny(result.AsUInt32(), Vector512<uint>.Zero) : 80typeof(T) == typeof(double) ? Vector512.EqualsAny(result.AsUInt64(), Vector512<ulong>.Zero) : 81Vector512.EqualsAny(result, Vector512<T>.Zero);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (2)
225Vector512<T> mask = Vector512.Equals(CreateRemainderMaskVector512<T>(x.Length - i), Vector512<T>.Zero); 408Vector512<T> mask = Vector512.Equals(CreateRemainderMaskVector512<T>(x.Length - i), Vector512<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (3)
103Vector512<T> abs = Vector512.ConditionalSelect(Vector512.LessThan(x, Vector512<T>.Zero), -x, x); 104if (Vector512.LessThan(abs, Vector512<T>.Zero) != Vector512<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (2)
517Vector512<uint> subnormalMask = Vector512.Equals(offsetExponent, Vector512<uint>.Zero); 532offsetMaskedExponentLowerBound = Vector512.ConditionalSelect(Vector512.Equals(infinityOrNaNMask, Vector512<uint>.Zero),
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
80return Vector512.IsNegative(Vector512<TTo>.AllBitsSet) != Vector512<TTo>.Zero ? 87return Vector512.IsNegative(Vector512<TTo>.AllBitsSet) != Vector512<TTo>.Zero ?
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
79return Vector512.IsNegative(Vector512<TTo>.AllBitsSet) != Vector512<TTo>.Zero ? 86return Vector512.IsNegative(Vector512<TTo>.AllBitsSet) != Vector512<TTo>.Zero ?
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (6)
66Vector512<T> dotProductVector = Vector512<T>.Zero; 67Vector512<T> xSumOfSquaresVector = Vector512<T>.Zero; 68Vector512<T> ySumOfSquaresVector = Vector512<T>.Zero; 207Vector512<float> dotProductVector = Vector512<float>.Zero; 208Vector512<float> xSumOfSquaresVector = Vector512<float>.Zero; 209Vector512<float> ySumOfSquaresVector = Vector512<float>.Zero;
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (4)
92if (equalMask != Vector512<T>.Zero) 184if (nanMask != Vector512<T>.Zero) 203if (nanMask != Vector512<T>.Zero) 223if (nanMask != Vector512<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (1)
92if (equalMask != Vector512<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (1)
89if (equalMask != Vector512<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (1)
92if (equalMask != Vector512<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.IsPow2.cs (2)
66Vector512.Equals(x & (x - Vector512<T>.One), Vector512<T>.Zero) & 67Vector512.GreaterThan(x, Vector512<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (1)
55public static Vector512<T> Invoke(Vector512<T> x) => Vector512.Equals(x, Vector512<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (3)
423if (nanMask != Vector512<T>.Zero) 442if (nanMask != Vector512<T>.Zero) 461if (nanMask != Vector512<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (5)
96return Vector512.ConditionalSelect(Vector512.Equals(x, Vector512<T>.Zero).AsInt32(), 97Vector512<int>.Zero, 112return Vector512.ConditionalSelect(Vector512.LessThan(x, Vector512<T>.Zero).AsInt32(), 114Vector512.ConditionalSelect(Vector512.GreaterThan(x, Vector512<T>.Zero).AsInt32(), 116Vector512<int>.Zero));
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (2)
228return Vector512.ConditionalSelect(Vector512.Equals(odd, Vector512<uint>.Zero).AsSingle(), 397return Vector512.ConditionalSelect(Vector512.Equals(odd, Vector512<ulong>.Zero).AsDouble(),
System.Private.CoreLib (61)
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
176Vector512<byte> isFalse = Vector512.Equals(vector, Vector512<byte>.Zero);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (13)
2035return Vector512<T>.Zero; 2059return Vector512<T>.Zero; 2073return Vector512<T>.Zero; 2077return LessThan(vector.AsInt32(), Vector512<int>.Zero).As<int, T>(); 2081return LessThan(vector.AsInt64(), Vector512<long>.Zero).As<long, T>(); 2085return LessThan(vector, Vector512<T>.Zero); 2102return Vector512<T>.Zero; 2152return GreaterThanOrEqual(vector.AsInt32(), Vector512<int>.Zero).As<int, T>(); 2156return GreaterThanOrEqual(vector.AsInt64(), Vector512<long>.Zero).As<long, T>(); 2160return GreaterThanOrEqual(vector, Vector512<T>.Zero); 2177return Vector512<T>.Zero; 2193return Vector512<T>.Zero; 2199public static Vector512<T> IsZero<T>(Vector512<T> vector) => Equals(vector, Vector512<T>.Zero);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
351return Zero - vector;
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (5)
144return Vector512.Equals(bitMask & bitPositions, Vector512<byte>.Zero); 443if (result != Vector512<byte>.Zero) 473if (result != Vector512<byte>.Zero) 621if (result != Vector512<byte>.Zero) 650if (result != Vector512<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (3)
321if (result != Vector512<byte>.Zero) 503if (result != Vector512<byte>.Zero) 632ulong resultMask = (~Vector512.Equals(result, Vector512<byte>.Zero)).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (1)
108if (result != Vector512<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (3)
92if (cmpAnd != Vector512<byte>.Zero) 319if (cmpAnd != Vector512<byte>.Zero) 573ulong matches = Vector512.Equals(Vector512<byte>.Zero, search).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (4)
96if (cmpAnd != Vector512<byte>.Zero) 335if (cmpAnd != Vector512<byte>.Zero) 654if (!Vector512.EqualsAny(search, Vector512<ushort>.Zero)) 667ulong matches = Vector512.Equals(search, Vector512<ushort>.Zero).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (4)
578if (result != Vector512<byte>.Zero) 602if (result != Vector512<byte>.Zero) 794if (result != Vector512<byte>.Zero) 818if (result != Vector512<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (20)
1795if (equals == Vector512<TValue>.Zero) 1810if (equals != Vector512<TValue>.Zero) 2002if (equals == Vector512<TValue>.Zero) 2017if (equals != Vector512<TValue>.Zero) 2159if (equals == Vector512<TValue>.Zero) 2175if (equals != Vector512<TValue>.Zero) 2323if (equals == Vector512<TValue>.Zero) 2339if (equals != Vector512<TValue>.Zero) 2642if (equals == Vector512<TValue>.Zero) 2656if (equals != Vector512<TValue>.Zero) 2827if (equals == Vector512<TValue>.Zero) 2841if (equals != Vector512<TValue>.Zero) 2977if (equals == Vector512<TValue>.Zero) 2991if (equals != Vector512<TValue>.Zero) 3236if (equals == Vector512<TValue>.Zero) 3251if (equals != Vector512<TValue>.Zero) 3584if (inRangeVector != Vector512<T>.Zero) 3595if (inRangeVector != Vector512<T>.Zero) 3726if (inRangeVector != Vector512<T>.Zero) 3736if (inRangeVector != Vector512<T>.Zero)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2057if (cmp != Vector512<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (3)
261if (notEquals != Vector512<TRight>.Zero) 292if (notEquals != Vector512<TRight>.Zero) 594if (((leftLower ^ right) | (leftUpper ^ rightNext)) != Vector512<ushort>.Zero)
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
1594return zeroIsAscii != Vector512<ushort>.Zero; 1661return (vector.AsUInt16() & Vector512.Create((ushort)0xFF80)) == Vector512<ushort>.Zero;