187 references to Zero
Microsoft.ML.CpuMath (21)
AvxIntrinsics.cs (9)
1082Vector128<float> result128 = Vector128<float>.Zero; 1127Vector128<float> result128 = Vector128<float>.Zero; 1174Vector128<float> result128 = Vector128<float>.Zero; 1220Vector128<float> result128 = Vector128<float>.Zero; 1267Vector128<float> result128 = Vector128<float>.Zero; 1313Vector128<float> result128 = Vector128<float>.Zero; 1364Vector128<float> result128 = Vector128<float>.Zero; 1421Vector128<float> result128 = Vector128<float>.Zero; 1476Vector128<float> sqDistanceVector128 = Vector128<float>.Zero;
SseIntrinsics.cs (12)
162Vector128<float> res0 = Vector128<float>.Zero; 234Vector128<float> result = Vector128<float>.Zero; 802Vector128<float> result = Vector128<float>.Zero; 886Vector128<float> result = Vector128<float>.Zero; 917Vector128<float> result = Vector128<float>.Zero; 951Vector128<float> result = Vector128<float>.Zero; 982Vector128<float> result = Vector128<float>.Zero; 1016Vector128<float> result = Vector128<float>.Zero; 1047Vector128<float> result = Vector128<float>.Zero; 1085Vector128<float> result = Vector128<float>.Zero; 1129Vector128<float> result = Vector128<float>.Zero; 1170Vector128<float> sqDistanceVector = Vector128<float>.Zero;
System.IO.Hashing (2)
System\IO\Hashing\VectorHelper.cs (2)
110return AdvSimd.ExtractVector128(operand.AsByte(), Vector128<byte>.Zero, numBytesToShift).AsUInt64(); 127return AdvSimd.ExtractVector128(Vector128<byte>.Zero, operand.AsByte(), 8).AsUInt64();
System.Numerics.Tensors (41)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (3)
68typeof(T) == typeof(float) ? Vector128.EqualsAny(result.AsUInt32(), Vector128<uint>.Zero) : 69typeof(T) == typeof(double) ? Vector128.EqualsAny(result.AsUInt64(), Vector128<ulong>.Zero) : 70Vector128.EqualsAny(result, Vector128<T>.Zero);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (2)
320Vector128<T> mask = Vector128.Equals(CreateRemainderMaskVector128<T>(x.Length - i), Vector128<T>.Zero); 507Vector128<T> mask = Vector128.Equals(CreateRemainderMaskVector128<T>(x.Length - i), Vector128<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (3)
59Vector128<T> abs = Vector128.ConditionalSelect(Vector128.LessThan(x, Vector128<T>.Zero), -x, x); 60if (Vector128.LessThan(abs, Vector128<T>.Zero) != Vector128<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (2)
411Vector128<uint> subnormalMask = Vector128.Equals(offsetExponent, Vector128<uint>.Zero); 426offsetMaskedExponentLowerBound = Vector128.ConditionalSelect(Vector128.Equals(infinityOrNaNMask, Vector128<uint>.Zero),
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
41return Vector128.IsNegative(Vector128<TTo>.AllBitsSet) != Vector128<TTo>.Zero ? 48return Vector128.IsNegative(Vector128<TTo>.AllBitsSet) != Vector128<TTo>.Zero ?
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
41return Vector128.IsNegative(Vector128<TTo>.AllBitsSet) != Vector128<TTo>.Zero ? 48return Vector128.IsNegative(Vector128<TTo>.AllBitsSet) != Vector128<TTo>.Zero ?
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (6)
140Vector128<T> dotProductVector = Vector128<T>.Zero; 141Vector128<T> xSumOfSquaresVector = Vector128<T>.Zero; 142Vector128<T> ySumOfSquaresVector = Vector128<T>.Zero; 291Vector128<float> dotProductVector = Vector128<float>.Zero; 292Vector128<float> xSumOfSquaresVector = Vector128<float>.Zero; 293Vector128<float> ySumOfSquaresVector = Vector128<float>.Zero;
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (4)
40if (equalMask != Vector128<T>.Zero) 366if (nanMask != Vector128<T>.Zero) 385if (nanMask != Vector128<T>.Zero) 405if (nanMask != Vector128<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (1)
38if (equalMask != Vector128<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (1)
37if (equalMask != Vector128<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (1)
38if (equalMask != Vector128<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.IsPow2.cs (2)
55Vector128.Equals(x & (x - Vector128<T>.One), Vector128<T>.Zero) & 56Vector128.GreaterThan(x, Vector128<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (1)
50public static Vector128<T> Invoke(Vector128<T> x) => Vector128.Equals(x, Vector128<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
49Vector128<byte> nibbleSelectMask = Sse2.CompareEqual(highNibble, Vector128<byte>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (3)
552if (nanMask != Vector128<T>.Zero) 571if (nanMask != Vector128<T>.Zero) 590if (nanMask != Vector128<T>.Zero)
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (5)
40return Vector128.ConditionalSelect(Vector128.Equals(x, Vector128<T>.Zero).AsInt32(), 41Vector128<int>.Zero, 56return Vector128.ConditionalSelect(Vector128.LessThan(x, Vector128<T>.Zero).AsInt32(), 58Vector128.ConditionalSelect(Vector128.GreaterThan(x, Vector128<T>.Zero).AsInt32(), 60Vector128<int>.Zero));
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (2)
158return Vector128.ConditionalSelect(Vector128.Equals(odd, Vector128<uint>.Zero).AsSingle(), 303return Vector128.ConditionalSelect(Vector128.Equals(odd, Vector128<ulong>.Zero).AsDouble(),
System.Private.CoreLib (123)
src\libraries\Common\src\System\HexConverter.cs (2)
403Vector128<short> even = AdvSimd.Arm64.TransposeEven(nibbles, Vector128<byte>.Zero).AsInt16(); 404Vector128<short> odd = AdvSimd.Arm64.TransposeOdd(nibbles, Vector128<byte>.Zero).AsInt16();
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (4)
958if (classified != Vector128<byte>.Zero) 1109Vector128<ushort> odds = AdvSimd.Arm64.TransposeOdd(str, Vector128<byte>.Zero).AsUInt16(); 1131Vector128<int> iodds = AdvSimd.Arm64.TransposeOdd(merge_ab_and_bc, Vector128<short>.Zero).AsInt32(); 1299if ((lo & hi) != Vector128<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (1)
519if (outside != Vector128<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (2)
199Vector128<byte> lowerIsFalse = Vector128.Equals(lowerVector, Vector128<byte>.Zero); 203Vector128<byte> upperIsFalse = Vector128.Equals(upperVector, Vector128<byte>.Zero);
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (1)
539if (cmpAnd != Vector128<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (1)
347Vector128.GreaterThanOrEqual(Vector128.Create(Dot(quaternion1, quaternion2)), Vector128<float>.Zero),
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (13)
1999return Vector128<T>.Zero; 2023return Vector128<T>.Zero; 2037return Vector128<T>.Zero; 2041return LessThan(vector.AsInt32(), Vector128<int>.Zero).As<int, T>(); 2045return LessThan(vector.AsInt64(), Vector128<long>.Zero).As<long, T>(); 2049return LessThan(vector, Vector128<T>.Zero); 2066return Vector128<T>.Zero; 2116return GreaterThanOrEqual(vector.AsInt32(), Vector128<int>.Zero).As<int, T>(); 2120return GreaterThanOrEqual(vector.AsInt64(), Vector128<long>.Zero).As<long, T>(); 2124return GreaterThanOrEqual(vector, Vector128<T>.Zero); 2141return Vector128<T>.Zero; 2157return Vector128<T>.Zero; 2163public static Vector128<T> IsZero<T>(Vector128<T> vector) => Equals(vector, Vector128<T>.Zero);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
353return Zero - vector;
src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (14)
386if (result != Vector128<byte>.Zero) 410if (result != Vector128<byte>.Zero) 518if (result != Vector128<byte>.Zero) 540if (result != Vector128<byte>.Zero) 664if (result != Vector128<byte>.Zero) 689if (result != Vector128<byte>.Zero) 791if (result != Vector128<byte>.Zero) 814if (result != Vector128<byte>.Zero) 939if (result != Vector128<byte>.Zero) 964if (result != Vector128<byte>.Zero) 1069if (result != Vector128<byte>.Zero) 1092if (result != Vector128<byte>.Zero) 1328public static uint ExtractMask(Vector128<byte> result) => ~Vector128.Equals(result, Vector128<byte>.Zero).ExtractMostSignificantBits(); 1339public static Vector128<byte> NegateIfNeeded(Vector128<byte> result) => Vector128.Equals(result, Vector128<byte>.Zero);
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (3)
283return Vector128.Equals(bitMask & bitPositions, Vector128<byte>.Zero); 569if (result != Vector128<byte>.Zero) 752if (result != Vector128<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (3)
217if (result != Vector128<byte>.Zero) 390if (result != Vector128<byte>.Zero) 539uint resultMask = (~Vector128.Equals(result, Vector128<byte>.Zero)).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (2)
201return different == Vector128<ushort>.Zero; 223return different == Vector128<ushort>.Zero;
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (1)
202if (result != Vector128<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (1)
202if (result != Vector128<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (8)
214if (cmpAnd != Vector128<byte>.Zero) 415if (cmpAnd != Vector128<byte>.Zero) 533uint matches = Vector128.Equals(Vector128<byte>.Zero, search).ExtractMostSignificantBits(); 613uint matches = Vector128.Equals(Vector128<byte>.Zero, search).ExtractMostSignificantBits(); 646uint matches = Vector128.Equals(Vector128<byte>.Zero, search).ExtractMostSignificantBits(); 686uint matches = Vector128.Equals(Vector128<byte>.Zero, search).ExtractMostSignificantBits(); 717Vector128<byte> compareResult = Vector128.Equals(Vector128<byte>.Zero, search); 718if (compareResult == Vector128<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (8)
225if (cmpAnd != Vector128<byte>.Zero) 435if (cmpAnd != Vector128<byte>.Zero) 601uint matches = Vector128.Equals(Vector128<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 703uint matches = Vector128.Equals(Vector128<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 745uint matches = Vector128.Equals(Vector128<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 791uint matches = Vector128.Equals(Vector128<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 829Vector128<ushort> compareResult = Vector128.Equals(Vector128<ushort>.Zero, search); 830if (compareResult == Vector128<ushort>.Zero)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (10)
276if (result != Vector128<byte>.Zero) 300if (result != Vector128<byte>.Zero) 478if (result != Vector128<byte>.Zero) 503if (result != Vector128<byte>.Zero) 692if (result != Vector128<byte>.Zero) 717if (result != Vector128<byte>.Zero) 910if (result != Vector128<byte>.Zero) 935if (result != Vector128<byte>.Zero) 1105if (result != Vector128<byte>.Zero) 1130if (result != Vector128<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (24)
1439if (equals == Vector128<T>.Zero) 1453if (equals != Vector128<T>.Zero) 1630if (equals == Vector128<TValue>.Zero) 1644if (equals != Vector128<TValue>.Zero) 1859if (equals == Vector128<TValue>.Zero) 1874if (equals != Vector128<TValue>.Zero) 2066if (equals == Vector128<TValue>.Zero) 2081if (equals != Vector128<TValue>.Zero) 2227if (equals == Vector128<TValue>.Zero) 2243if (equals != Vector128<TValue>.Zero) 2393if (equals == Vector128<TValue>.Zero) 2409if (equals != Vector128<TValue>.Zero) 2701if (equals == Vector128<TValue>.Zero) 2715if (equals != Vector128<TValue>.Zero) 2887if (equals == Vector128<TValue>.Zero) 2901if (equals != Vector128<TValue>.Zero) 3037if (equals == Vector128<TValue>.Zero) 3051if (equals != Vector128<TValue>.Zero) 3301if (equals == Vector128<TValue>.Zero) 3316if (equals != Vector128<TValue>.Zero) 3526if (inRangeVector != Vector128<T>.Zero) 3537if (inRangeVector != Vector128<T>.Zero) 3672if (inRangeVector != Vector128<T>.Zero) 3682if (inRangeVector != Vector128<T>.Zero)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2115if (cmp != Vector128<byte>.Zero)
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (3)
406if (notEquals != Vector128<TRight>.Zero) 437if (notEquals != Vector128<TRight>.Zero) 524return Sse2.UnpackLow(vec, Vector128<byte>.Zero).AsUInt16();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (6)
1531return (asciiVector & Vector128.Create((byte)0x80)) != Vector128<byte>.Zero; 1553return zeroIsAscii != Vector128<ushort>.Zero; 1575return zeroIsAscii != Vector128<ushort>.Zero; 1618Sse41.IsSupported ? (vector.AsByte() & Vector128.Create((byte)0x80)) == Vector128<byte>.Zero : 1626(vector.AsUInt16() & Vector128.Create((ushort)0xFF80)) == Vector128<ushort>.Zero; 2281Vector128<ulong> vecWide = AdvSimd.Arm64.ZipLow(vecNarrow, Vector128<byte>.Zero).AsUInt64();
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (9)
270if ((combinedVector & latin1MaskForTestZ) != Vector128<ushort>.Zero) 315if ((firstVector & latin1MaskForTestZ) != Vector128<ushort>.Zero) 350if ((firstVector & latin1MaskForTestZ) != Vector128<ushort>.Zero) 384if ((firstVector & latin1MaskForTestZ) != Vector128<ushort>.Zero) 798if ((utf16VectorFirst & latin1MaskForTestZ) != Vector128<short>.Zero) 840if ((utf16VectorFirst & latin1MaskForTestZ) != Vector128<short>.Zero) 881if ((combinedVector & latin1MaskForTestZ) != Vector128<short>.Zero) 917if ((utf16VectorFirst & latin1MaskForTestZ) != Vector128<short>.Zero) 975Vector128<byte> zeroVector = Vector128<byte>.Zero;
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16Utility.Validation.cs (2)
293Vector128<nuint> sumVector = (Vector128<ushort>.Zero - twoOrMoreUtf8Bytes - threeOrMoreUtf8Bytes).AsNUInt(); 319if (surrogateChars != Vector128<ushort>.Zero)
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.cs (2)
263return (vec & Vector128.Create(unchecked((byte)(~0x7F)))) == Vector128<byte>.Zero; 292return (lcVec1 ^ lcVec2) == Vector128<sbyte>.Zero;
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (1)
976if ((utf16Data & nonAsciiUtf16DataMask) != Vector128<short>.Zero)