144 references to Equals
System.Numerics.Tensors (26)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (2)
224
Vector512<T> mask = Vector512.
Equals
(CreateRemainderMaskVector512<T>(x.Length - i), Vector512<T>.Zero);
407
Vector512<T> mask = Vector512.
Equals
(CreateRemainderMaskVector512<T>(x.Length - i), Vector512<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (4)
515
Vector512<uint> subnormalMask = Vector512.
Equals
(offsetExponent, Vector512<uint>.Zero);
518
Vector512<uint> infinityOrNaNMask = Vector512.
Equals
(offsetExponent, Vector512.Create(HalfExponentMask));
530
offsetMaskedExponentLowerBound = Vector512.ConditionalSelect(Vector512.
Equals
(infinityOrNaNMask, Vector512<uint>.Zero),
715
Vector512<uint> realMask = Vector512.
Equals
(value, value).AsUInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.HammingDistance.cs (2)
91
count += BitOperations.PopCount((~Vector512.
Equals
(xVec, yVec)).ExtractMostSignificantBits());
107
count += BitOperations.PopCount((~Vector512.
Equals
(xVec, yVec)).ExtractMostSignificantBits());
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (5)
90
Vector512<T> equalMask = Vector512.
Equals
(result, current);
99
Vector512<T> sameSign = Vector512.
Equals
(IsNegative(result).AsInt32(), currentNegative.AsInt32()).As<int, T>();
183
nanMask = ~Vector512.
Equals
(result, result);
202
nanMask = ~Vector512.
Equals
(current, current);
222
nanMask = ~Vector512.
Equals
(current, current);
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (2)
90
Vector512<T> equalMask = Vector512.
Equals
(resultMag, currentMag);
99
Vector512<T> sameSign = Vector512.
Equals
(IsNegative(result).AsInt32(), currentNegative.AsInt32()).As<int, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (2)
87
Vector512<T> equalMask = Vector512.
Equals
(result, current);
96
Vector512<T> sameSign = Vector512.
Equals
(resultNegative.AsInt32(), IsNegative(current).AsInt32()).As<int, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (2)
90
Vector512<T> equalMask = Vector512.
Equals
(resultMag, currentMag);
99
Vector512<T> sameSign = Vector512.
Equals
(resultNegative.AsInt32(), IsNegative(current).AsInt32()).As<int, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IsPow2.cs (1)
63
Vector512.
Equals
(x & (x - Vector512<T>.One), Vector512<T>.Zero) &
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (1)
52
public static Vector512<T> Invoke(Vector512<T> x) => Vector512.
Equals
(x, Vector512<T>.Zero);
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (2)
439
nanMask = ~Vector512.
Equals
(current, current);
458
nanMask = ~Vector512.
Equals
(current, current);
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (1)
94
return Vector512.ConditionalSelect(Vector512.
Equals
(x, Vector512<T>.Zero).AsInt32(),
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (2)
228
return Vector512.ConditionalSelect(Vector512.
Equals
(odd, Vector512<uint>.Zero).AsSingle(),
397
return Vector512.ConditionalSelect(Vector512.
Equals
(odd, Vector512<ulong>.Zero).AsDouble(),
System.Private.CoreLib (118)
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
177
Vector512<byte> isFalse = Vector512.
Equals
(vector, Vector512<byte>.Zero);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (10)
763
public static int Count<T>(Vector512<T> vector, T value) => BitOperations.PopCount(
Equals
(vector, Create(value)).ExtractMostSignificantBits());
2045
int result = BitOperations.TrailingZeroCount(
Equals
(vector, Create(value)).ExtractMostSignificantBits());
2119
return IsFinite(vector) &
Equals
(vector, Truncate(vector));
2131
return ~
Equals
(vector, vector);
2170
return
Equals
(vector, Vector512<float>.NegativeInfinity.As<float, T>());
2174
return
Equals
(vector, Vector512<double>.NegativeInfinity.As<double, T>());
2245
return
Equals
(vector, Vector512<float>.PositiveInfinity.As<float, T>());
2249
return
Equals
(vector, Vector512<double>.PositiveInfinity.As<double, T>());
2273
public static Vector512<T> IsZero<T>(Vector512<T> vector) =>
Equals
(vector, Vector512<T>.Zero);
2278
public static int LastIndexOf<T>(Vector512<T> vector, T value) => 63 - BitOperations.LeadingZeroCount(
Equals
(vector, Create(value)).ExtractMostSignificantBits());
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (4)
399
Vector512<T> result = Vector512.
Equals
(this, other) | ~(Vector512.
Equals
(this, this) | Vector512.
Equals
(other, other));
581
static Vector512<T> ISimdVector<Vector512<T>, T>.Equals(Vector512<T> left, Vector512<T> right) => Vector512.
Equals
(left, right);
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (1)
144
return Vector512.
Equals
(bitMask & bitPositions, Vector512<byte>.Zero);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (1)
632
ulong resultMask = (~Vector512.
Equals
(result, Vector512<byte>.Zero)).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (6)
312
Vector512<byte> cmpCh1 = Vector512.
Equals
(ch1, LoadPacked512(ref searchSpace, 0));
313
Vector512<byte> cmpCh2 = Vector512.
Equals
(ch2, LoadPacked512(ref searchSpace, ch2ByteOffset));
314
Vector512<byte> cmpCh3 = Vector512.
Equals
(ch3, LoadPacked512(ref searchSpace, ch3ByteOffset));
321
Vector512<byte> cmpCh1 = Vector512.
Equals
(ch1, LoadPacked512(ref searchSpace, 0) & caseConversion);
322
Vector512<byte> cmpCh2 = Vector512.
Equals
(ch2, LoadPacked512(ref searchSpace, ch2ByteOffset) & caseConversion);
323
Vector512<byte> cmpCh3 = Vector512.
Equals
(ch3, LoadPacked512(ref searchSpace, ch3ByteOffset) & caseConversion);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (6)
309
Vector512<ushort> cmpCh1 = Vector512.
Equals
(ch1, Vector512.LoadUnsafe(ref searchSpace));
310
Vector512<ushort> cmpCh2 = Vector512.
Equals
(ch2, Vector512.LoadUnsafe(ref Unsafe.As<char, byte>(ref searchSpace), ch2ByteOffset).AsUInt16());
311
Vector512<ushort> cmpCh3 = Vector512.
Equals
(ch3, Vector512.LoadUnsafe(ref Unsafe.As<char, byte>(ref searchSpace), ch3ByteOffset).AsUInt16());
318
Vector512<ushort> cmpCh1 = Vector512.
Equals
(ch1, Vector512.LoadUnsafe(ref searchSpace) & caseConversion);
319
Vector512<ushort> cmpCh2 = Vector512.
Equals
(ch2, Vector512.LoadUnsafe(ref Unsafe.As<char, byte>(ref searchSpace), ch2ByteOffset).AsUInt16() & caseConversion);
320
Vector512<ushort> cmpCh3 = Vector512.
Equals
(ch3, Vector512.LoadUnsafe(ref Unsafe.As<char, byte>(ref searchSpace), ch3ByteOffset).AsUInt16() & caseConversion);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (7)
87
Vector512<byte> cmpCh2 = Vector512.
Equals
(ch2, Vector512.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance)));
88
Vector512<byte> cmpCh1 = Vector512.
Equals
(ch1, Vector512.LoadUnsafe(ref searchSpace, (nuint)offset));
314
Vector512<byte> cmpCh1 = Vector512.
Equals
(ch1, Vector512.LoadUnsafe(ref searchSpace, (nuint)offset));
315
Vector512<byte> cmpCh2 = Vector512.
Equals
(ch2, Vector512.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance)));
573
ulong matches = Vector512.
Equals
(Vector512<byte>.Zero, search).ExtractMostSignificantBits();
984
matches = Vector512.
Equals
(Vector512.LoadUnsafe(ref first, offset), Vector512.LoadUnsafe(ref second, offset)).ExtractMostSignificantBits();
1001
matches = Vector512.
Equals
(Vector512.LoadUnsafe(ref first, offset), Vector512.LoadUnsafe(ref second, offset)).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (5)
91
Vector512<ushort> cmpCh2 = Vector512.
Equals
(ch2, Vector512.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance)));
92
Vector512<ushort> cmpCh1 = Vector512.
Equals
(ch1, Vector512.LoadUnsafe(ref searchSpace, (nuint)offset));
330
Vector512<ushort> cmpCh1 = Vector512.
Equals
(ch1, Vector512.LoadUnsafe(ref searchSpace, (nuint)offset));
331
Vector512<ushort> cmpCh2 = Vector512.
Equals
(ch2, Vector512.LoadUnsafe(ref searchSpace, (nuint)(offset + ch1ch2Distance)));
667
ulong matches = Vector512.
Equals
(search, Vector512<ushort>.Zero).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (12)
576
Vector512<byte> result = NegateIfNeeded<TNegator>(Vector512.
Equals
(packedValue0, packedSource) | Vector512.
Equals
(packedValue1, packedSource));
600
Vector512<byte> result = NegateIfNeeded<TNegator>(Vector512.
Equals
(packedValue0, packedSource) | Vector512.
Equals
(packedValue1, packedSource));
792
Vector512<byte> result = NegateIfNeeded<TNegator>(Vector512.
Equals
(packedValue0, packedSource) | Vector512.
Equals
(packedValue1, packedSource) | Vector512.
Equals
(packedValue2, packedSource));
816
Vector512<byte> result = NegateIfNeeded<TNegator>(Vector512.
Equals
(packedValue0, packedSource) | Vector512.
Equals
(packedValue1, packedSource) | Vector512.
Equals
(packedValue2, packedSource));
1210
? Vector512.
Equals
(left, right) : ~Vector512.
Equals
(left, right);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (60)
1794
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(values0, current) | Vector512.
Equals
(values1, current));
1809
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(values0, current) | Vector512.
Equals
(values1, current));
2001
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(values0, current) | Vector512.
Equals
(values1, current) | Vector512.
Equals
(values2, current));
2016
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(values0, current) | Vector512.
Equals
(values1, current) | Vector512.
Equals
(values2, current));
2157
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(values0, current) | Vector512.
Equals
(values1, current)
2158
| Vector512.
Equals
(values2, current) | Vector512.
Equals
(values3, current));
2173
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(values0, current) | Vector512.
Equals
(values1, current)
2174
| Vector512.
Equals
(values2, current) | Vector512.
Equals
(values3, current));
2321
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(values0, current) | Vector512.
Equals
(values1, current) | Vector512.
Equals
(values2, current)
2322
| Vector512.
Equals
(values3, current) | Vector512.
Equals
(values4, current));
2337
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(values0, current) | Vector512.
Equals
(values1, current) | Vector512.
Equals
(values2, current)
2338
| Vector512.
Equals
(values3, current) | Vector512.
Equals
(values4, current));
2640
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(current, values0) | Vector512.
Equals
(current, values1));
2654
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(current, values0) | Vector512.
Equals
(current, values1));
2825
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(current, values0) | Vector512.
Equals
(current, values1) | Vector512.
Equals
(current, values2));
2839
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(current, values0) | Vector512.
Equals
(current, values1) | Vector512.
Equals
(current, values2));
2975
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(current, values0) | Vector512.
Equals
(current, values1)
2976
| Vector512.
Equals
(current, values2) | Vector512.
Equals
(current, values3));
2989
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(current, values0) | Vector512.
Equals
(current, values1) | Vector512.
Equals
(current, values2) | Vector512.
Equals
(current, values3));
3161
mask = Vector512.
Equals
(oldValues, original);
3170
mask = Vector512.
Equals
(oldValues, original);
3234
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(current, values0) | Vector512.
Equals
(current, values1) | Vector512.
Equals
(current, values2)
3235
| Vector512.
Equals
(current, values3) | Vector512.
Equals
(current, values4));
3248
equals = TNegator.NegateIfNeeded(Vector512.
Equals
(current, values0) | Vector512.
Equals
(current, values1) | Vector512.
Equals
(current, values2)
3249
| Vector512.
Equals
(current, values3) | Vector512.
Equals
(current, values4));
3791
count += BitOperations.PopCount(Vector512.
Equals
(Vector512.LoadUnsafe(ref current), targetVector).ExtractMostSignificantBits());
3796
ulong mask = Vector512.
Equals
(Vector512.LoadUnsafe(ref oneVectorAwayFromEnd), targetVector).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (3)
2052
Vector512<ushort> v1Eq = Vector512.
Equals
(vector, v1);
2053
Vector512<ushort> v2Eq = Vector512.
Equals
(vector, v2);
2054
Vector512<ushort> v3Eq = Vector512.
Equals
(vector, v3);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (2)
259
Vector512<TRight> notEquals = ~Vector512.
Equals
(leftValues, rightValues);
290
Vector512<TRight> notEquals = ~Vector512.
Equals
(leftValues, rightValues);