155 references to Zero
Microsoft.ML.CpuMath (14)
AvxIntrinsics.cs (12)
197Vector256<float> res0 = Vector256<float>.Zero; 275Vector256<float> result = Vector256<float>.Zero; 982Vector256<float> result = Vector256<float>.Zero; 1069Vector256<float> result256 = Vector256<float>.Zero; 1113Vector256<float> result256 = Vector256<float>.Zero; 1161Vector256<float> result256 = Vector256<float>.Zero; 1205Vector256<float> result256 = Vector256<float>.Zero; 1254Vector256<float> result256 = Vector256<float>.Zero; 1298Vector256<float> result256 = Vector256<float>.Zero; 1351Vector256<float> result256 = Vector256<float>.Zero; 1408Vector256<float> result256 = Vector256<float>.Zero; 1462Vector256<float> sqDistanceVector256 = Vector256<float>.Zero;
FactorizationMachine\AvxIntrinsics.cs (2)
69Vector256<float> y = Vector256<float>.Zero; 70Vector256<float> tmp = Vector256<float>.Zero;
System.IO.Hashing (4)
System\IO\Hashing\Adler32.cs (4)
386Vector256<uint> vs3 = Vector256<uint>.Zero; 394vs1 += Avx2.SumAbsoluteDifferences(data, Vector256<byte>.Zero).AsUInt32(); 459Vector256<uint> sumLo = Avx2.SumAbsoluteDifferences(data.GetLower(), Vector256<byte>.Zero).AsUInt32(); 460vs2 += Vector512.Create(sumLo << 5, Vector256<uint>.Zero);
System.Numerics.Tensors (40)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (3)
56typeof(T) == typeof(float) ? Vector256.EqualsAny(result.AsUInt32(), Vector256<uint>.Zero) : 57typeof(T) == typeof(double) ? Vector256.EqualsAny(result.AsUInt64(), Vector256<ulong>.Zero) : 58Vector256.EqualsAny(result, Vector256<T>.Zero);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (6)
328if (nanMask != Vector256<T>.Zero) 361if (nanMask != Vector256<T>.Zero) 395if (nanMask != Vector256<T>.Zero) 429if (nanMask != Vector256<T>.Zero) 470if (nanMask != Vector256<T>.Zero) 506if (nanMask != Vector256<T>.Zero)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (2)
272Vector256<T> mask = Vector256.Equals(CreateRemainderMaskVector256<T>(x.Length - i), Vector256<T>.Zero); 457Vector256<T> mask = Vector256.Equals(CreateRemainderMaskVector256<T>(x.Length - i), Vector256<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (3)
81Vector256<T> abs = Vector256.ConditionalSelect(Vector256.LessThan(x, Vector256<T>.Zero), -x, x); 82if (Vector256.LessThan(abs, Vector256<T>.Zero) != Vector256<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (2)
463Vector256<uint> subnormalMask = Vector256.Equals(offsetExponent, Vector256<uint>.Zero); 478offsetMaskedExponentLowerBound = Vector256.ConditionalSelect(Vector256.Equals(infinityOrNaNMask, Vector256<uint>.Zero),
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
61return Vector256.IsNegative(Vector256<TTo>.AllBitsSet) != Vector256<TTo>.Zero ? 68return Vector256.IsNegative(Vector256<TTo>.AllBitsSet) != Vector256<TTo>.Zero ?
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
60return Vector256.IsNegative(Vector256<TTo>.AllBitsSet) != Vector256<TTo>.Zero ? 67return Vector256.IsNegative(Vector256<TTo>.AllBitsSet) != Vector256<TTo>.Zero ?
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (6)
103Vector256<T> dotProductVector = Vector256<T>.Zero; 104Vector256<T> xSumOfSquaresVector = Vector256<T>.Zero; 105Vector256<T> ySumOfSquaresVector = Vector256<T>.Zero; 249Vector256<float> dotProductVector = Vector256<float>.Zero; 250Vector256<float> xSumOfSquaresVector = Vector256<float>.Zero; 251Vector256<float> ySumOfSquaresVector = Vector256<float>.Zero;
System\Numerics\Tensors\netcore\TensorPrimitives.IsPow2.cs (2)
59Vector256.Equals(x & (x - Vector256<T>.One), Vector256<T>.Zero) & 60Vector256.GreaterThan(x, Vector256<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (1)
51public static Vector256<T> Invoke(Vector256<T> x) => Vector256.Equals(x, Vector256<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
127Vector256<byte> nibbleSelectMask = Avx2.CompareEqual(highNibble, Vector256<byte>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (3)
219if (nanMask != Vector256<T>.Zero) 238if (nanMask != Vector256<T>.Zero) 258if (nanMask != Vector256<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (5)
67return Vector256.ConditionalSelect(Vector256.Equals(x, Vector256<T>.Zero).AsInt32(), 68Vector256<int>.Zero, 83return Vector256.ConditionalSelect(Vector256.LessThan(x, Vector256<T>.Zero).AsInt32(), 85Vector256.ConditionalSelect(Vector256.GreaterThan(x, Vector256<T>.Zero).AsInt32(), 87Vector256<int>.Zero));
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (2)
193return Vector256.ConditionalSelect(Vector256.Equals(odd, Vector256<uint>.Zero).AsSingle(), 350return Vector256.ConditionalSelect(Vector256.Equals(odd, Vector256<ulong>.Zero).AsDouble(),
System.Private.CoreLib (97)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
1532if ((lo & hi) != Vector256<sbyte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (1)
434if (outside != Vector256<sbyte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
247Vector256<byte> isFalse = Vector256.Equals(vector, Vector256<byte>.Zero);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (1)
474if (cmpAnd != Vector256<byte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
351return Zero - vector;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (14)
2285return Vector256<T>.Zero; 2309return Vector256<T>.Zero; 2319return Vector256<T>.Zero; 2323return LessThan(vector.AsInt32(), Vector256<int>.Zero).As<int, T>(); 2327return LessThan(vector.AsInt64(), Vector256<long>.Zero).As<long, T>(); 2331return LessThan(vector, Vector256<T>.Zero); 2348return Vector256<T>.Zero; 2394return GreaterThanOrEqual(vector.AsInt32(), Vector256<int>.Zero).As<int, T>(); 2398return GreaterThanOrEqual(vector.AsInt64(), Vector256<long>.Zero).As<long, T>(); 2402return GreaterThanOrEqual(vector, Vector256<T>.Zero); 2419return Vector256<T>.Zero; 2435return Vector256<T>.Zero; 2441public static Vector256<T> IsZero<T>(Vector256<T> vector) => Equals(vector, Vector256<T>.Zero); 3462Vector256<T> result = Vector256<T>.Zero;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (15)
334if (result != Vector256<byte>.Zero) 358if (result != Vector256<byte>.Zero) 468if (result != Vector256<byte>.Zero) 490if (result != Vector256<byte>.Zero) 616if (result != Vector256<byte>.Zero) 641if (result != Vector256<byte>.Zero) 743if (result != Vector256<byte>.Zero) 766if (result != Vector256<byte>.Zero) 888if (result != Vector256<byte>.Zero) 913if (result != Vector256<byte>.Zero) 1018if (result != Vector256<byte>.Zero) 1041if (result != Vector256<byte>.Zero) 1329public static int IndexOfFirstMatch(Vector256<byte> result) => Vector256.IndexOfFirstMatch(~Vector256.Equals(result, Vector256<byte>.Zero)); 1333public static int IndexOfLastMatch(Vector256<byte> result) => Vector256.IndexOfLastMatch(~Vector256.Equals(result, Vector256<byte>.Zero)); 1348public static Vector256<byte> NegateIfNeeded(Vector256<byte> result) => Vector256.Equals(result, Vector256<byte>.Zero);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (6)
179return Vector256.Equals(bitMask & bitPositions, Vector256<byte>.Zero); 217return Vector256.Equals(bitMask & bitPositions, Vector256<byte>.Zero); 496if (result != Vector256<byte>.Zero) 536if (result != Vector256<byte>.Zero) 675if (result != Vector256<byte>.Zero) 718if (result != Vector256<byte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (3)
273if (result != Vector256<byte>.Zero) 453if (result != Vector256<byte>.Zero) 592uint resultMask = (~Vector256.Equals(result, Vector256<byte>.Zero)).ExtractMostSignificantBits();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (1)
155if (result != Vector256<byte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (1)
155if (result != Vector256<byte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (5)
153if (cmpAnd != Vector256<byte>.Zero) 366if (cmpAnd != Vector256<byte>.Zero) 555uint matches = Vector256.Equals(Vector256<byte>.Zero, search).ExtractMostSignificantBits(); 594uint matches = Vector256.Equals(Vector256<byte>.Zero, search).ExtractMostSignificantBits(); 665uint matches = Vector256.Equals(Vector256<byte>.Zero, search).ExtractMostSignificantBits();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (5)
164if (cmpAnd != Vector256<byte>.Zero) 386if (cmpAnd != Vector256<byte>.Zero) 629uint matches = Vector256.Equals(Vector256<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 681uint matches = Vector256.Equals(Vector256<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 767uint matches = Vector256.Equals(Vector256<ushort>.Zero, search).AsByte().ExtractMostSignificantBits();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (10)
218if (result != Vector256<byte>.Zero) 242if (result != Vector256<byte>.Zero) 418if (result != Vector256<byte>.Zero) 443if (result != Vector256<byte>.Zero) 631if (result != Vector256<byte>.Zero) 656if (result != Vector256<byte>.Zero) 848if (result != Vector256<byte>.Zero) 873if (result != Vector256<byte>.Zero) 1044if (result != Vector256<byte>.Zero) 1069if (result != Vector256<byte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (24)
1568if (equals == Vector256<T>.Zero) 1582if (equals != Vector256<T>.Zero) 1787if (equals == Vector256<TValue>.Zero) 1801if (equals != Vector256<TValue>.Zero) 2052if (equals == Vector256<TValue>.Zero) 2067if (equals != Vector256<TValue>.Zero) 2293if (equals == Vector256<TValue>.Zero) 2308if (equals != Vector256<TValue>.Zero) 2463if (equals == Vector256<TValue>.Zero) 2479if (equals != Vector256<TValue>.Zero) 2638if (equals == Vector256<TValue>.Zero) 2654if (equals != Vector256<TValue>.Zero) 3010if (equals == Vector256<TValue>.Zero) 3024if (equals != Vector256<TValue>.Zero) 3226if (equals == Vector256<TValue>.Zero) 3239if (equals != Vector256<TValue>.Zero) 3384if (equals == Vector256<TValue>.Zero) 3396if (equals != Vector256<TValue>.Zero) 3657if (equals == Vector256<TValue>.Zero) 3671if (equals != Vector256<TValue>.Zero) 3943if (inRangeVector != Vector256<T>.Zero) 3954if (inRangeVector != Vector256<T>.Zero) 4087if (inRangeVector != Vector256<T>.Zero) 4097if (inRangeVector != Vector256<T>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
2243if ((Vector256.Equals(packed, packedComparand1) | Vector256.Equals(packed, packedComparand2) | Vector256.Equals(packed, packedComparand3)) != Vector256<byte>.Zero) 2284if (cmp != Vector256<byte>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (3)
333if (notEquals != Vector256<TRight>.Zero) 364if (notEquals != Vector256<TRight>.Zero) 559if (((leftLower ^ right) | (leftUpper ^ rightNext)) != Vector256<ushort>.Zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (3)
1589return zeroIsAscii != Vector256<ushort>.Zero; 1645Avx.IsSupported ? (vector.AsByte() & Vector256.Create((byte)0x80)) == Vector256<byte>.Zero: 1650return (vector.AsUInt16() & Vector256.Create((ushort)0xFF80)) == Vector256<ushort>.Zero;