105 references to Zero
System.IO.Hashing (2)
System\IO\Hashing\Adler32.cs (2)
447Vector512<uint> vs3 = Vector512<uint>.Zero; 455vs1 += Avx512BW.SumAbsoluteDifferences(data, Vector512<byte>.Zero).AsUInt32();
System.Numerics.Tensors (39)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (3)
61typeof(T) == typeof(float) ? Vector512.EqualsAny(result.AsUInt32(), Vector512<uint>.Zero) : 62typeof(T) == typeof(double) ? Vector512.EqualsAny(result.AsUInt64(), Vector512<ulong>.Zero) : 63Vector512.EqualsAny(result, Vector512<T>.Zero);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (6)
559if (nanMask != Vector512<T>.Zero) 592if (nanMask != Vector512<T>.Zero) 626if (nanMask != Vector512<T>.Zero) 660if (nanMask != Vector512<T>.Zero) 701if (nanMask != Vector512<T>.Zero) 737if (nanMask != Vector512<T>.Zero)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (2)
224Vector512<T> mask = Vector512.Equals(CreateRemainderMaskVector512<T>(x.Length - i), Vector512<T>.Zero); 407Vector512<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)
515Vector512<uint> subnormalMask = Vector512.Equals(offsetExponent, Vector512<uint>.Zero); 530offsetMaskedExponentLowerBound = 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.IsPow2.cs (2)
63Vector512.Equals(x & (x - Vector512<T>.One), Vector512<T>.Zero) & 64Vector512.GreaterThan(x, Vector512<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (1)
52public static Vector512<T> Invoke(Vector512<T> x) => Vector512.Equals(x, Vector512<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (3)
154if (nanMask != Vector512<T>.Zero) 173if (nanMask != Vector512<T>.Zero) 192if (nanMask != Vector512<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (5)
94return Vector512.ConditionalSelect(Vector512.Equals(x, Vector512<T>.Zero).AsInt32(), 95Vector512<int>.Zero, 110return Vector512.ConditionalSelect(Vector512.LessThan(x, Vector512<T>.Zero).AsInt32(), 112Vector512.ConditionalSelect(Vector512.GreaterThan(x, Vector512<T>.Zero).AsInt32(), 114Vector512<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 (64)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
234Vector512<byte> isFalse = Vector512.Equals(vector, Vector512<byte>.Zero);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
351return Zero - vector;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (14)
2320return Vector512<T>.Zero; 2344return Vector512<T>.Zero; 2354return Vector512<T>.Zero; 2358return LessThan(vector.AsInt32(), Vector512<int>.Zero).As<int, T>(); 2362return LessThan(vector.AsInt64(), Vector512<long>.Zero).As<long, T>(); 2366return LessThan(vector, Vector512<T>.Zero); 2383return Vector512<T>.Zero; 2429return GreaterThanOrEqual(vector.AsInt32(), Vector512<int>.Zero).As<int, T>(); 2433return GreaterThanOrEqual(vector.AsInt64(), Vector512<long>.Zero).As<long, T>(); 2437return GreaterThanOrEqual(vector, Vector512<T>.Zero); 2454return Vector512<T>.Zero; 2470return Vector512<T>.Zero; 2476public static Vector512<T> IsZero<T>(Vector512<T> vector) => Equals(vector, Vector512<T>.Zero); 3489Vector512<T> result = Vector512<T>.Zero;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (5)
144return Vector512.Equals(bitMask & bitPositions, Vector512<byte>.Zero); 449if (result != Vector512<byte>.Zero) 479if (result != Vector512<byte>.Zero) 628if (result != Vector512<byte>.Zero) 657if (result != Vector512<byte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (3)
325if (result != Vector512<byte>.Zero) 508if (result != Vector512<byte>.Zero) 637ulong resultMask = (~Vector512.Equals(result, Vector512<byte>.Zero)).ExtractMostSignificantBits();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (1)
107if (result != Vector512<byte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (1)
107if (result != Vector512<byte>.Zero)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (4)
97if (cmpAnd != Vector512<byte>.Zero) 336if (cmpAnd != Vector512<byte>.Zero) 655if (!Vector512.EqualsAny(search, Vector512<ushort>.Zero)) 668ulong matches = Vector512.Equals(search, Vector512<ushort>.Zero).ExtractMostSignificantBits();
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (20)
2020if (equals == Vector512<TValue>.Zero) 2035if (equals != Vector512<TValue>.Zero) 2261if (equals == Vector512<TValue>.Zero) 2276if (equals != Vector512<TValue>.Zero) 2429if (equals == Vector512<TValue>.Zero) 2445if (equals != Vector512<TValue>.Zero) 2603if (equals == Vector512<TValue>.Zero) 2619if (equals != Vector512<TValue>.Zero) 2980if (equals == Vector512<TValue>.Zero) 2994if (equals != Vector512<TValue>.Zero) 3197if (equals == Vector512<TValue>.Zero) 3210if (equals != Vector512<TValue>.Zero) 3355if (equals == Vector512<TValue>.Zero) 3368if (equals != Vector512<TValue>.Zero) 3626if (equals == Vector512<TValue>.Zero) 3640if (equals != Vector512<TValue>.Zero) 3972if (inRangeVector != Vector512<T>.Zero) 3983if (inRangeVector != Vector512<T>.Zero) 4114if (inRangeVector != Vector512<T>.Zero) 4124if (inRangeVector != Vector512<T>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
2148if ((Vector512.Equals(packed, packedComparand1) | Vector512.Equals(packed, packedComparand2) | Vector512.Equals(packed, packedComparand3)) != Vector512<byte>.Zero) 2189if (cmp != Vector512<byte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (3)
261if (notEquals != Vector512<TRight>.Zero) 292if (notEquals != Vector512<TRight>.Zero) 584if (((leftLower ^ right) | (leftUpper ^ rightNext)) != Vector512<ushort>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
1598return zeroIsAscii != Vector512<ushort>.Zero; 1666return (vector.AsUInt16() & Vector512.Create((ushort)0xFF80)) == Vector512<ushort>.Zero;