94 references to Zero
System.Collections (1)
System\Collections\BitArray.cs (1)
142
Vector512<byte> isFalse = Vector512.Equals(vector, Vector512<byte>.
Zero
);
System.Numerics.Tensors (33)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (3)
79
typeof(T) == typeof(float) ? Vector512.EqualsAny(result.AsUInt32(), Vector512<uint>.
Zero
) :
80
typeof(T) == typeof(double) ? Vector512.EqualsAny(result.AsUInt64(), Vector512<ulong>.
Zero
) :
81
Vector512.EqualsAny(result, Vector512<T>.
Zero
);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (2)
225
Vector512<T> mask = Vector512.Equals(CreateRemainderMaskVector512<T>(x.Length - i), Vector512<T>.
Zero
);
408
Vector512<T> mask = Vector512.Equals(CreateRemainderMaskVector512<T>(x.Length - i), Vector512<T>.
Zero
);
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (3)
96
Vector512<T> abs = Vector512.ConditionalSelect(Vector512.LessThan(x, Vector512<T>.
Zero
), -x, x);
97
if (Vector512.LessThan(abs, Vector512<T>.
Zero
) != Vector512<T>.
Zero
)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (2)
517
Vector512<uint> subnormalMask = Vector512.Equals(offsetExponent, Vector512<uint>.
Zero
);
532
offsetMaskedExponentLowerBound = Vector512.ConditionalSelect(Vector512.Equals(infinityOrNaNMask, Vector512<uint>.
Zero
),
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (3)
57
Vector512<T> dotProductVector = Vector512<T>.
Zero
;
58
Vector512<T> xSumOfSquaresVector = Vector512<T>.
Zero
;
59
Vector512<T> ySumOfSquaresVector = Vector512<T>.
Zero
;
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (4)
92
if (equalMask != Vector512<T>.
Zero
)
184
if (nanMask != Vector512<T>.
Zero
)
203
if (nanMask != Vector512<T>.
Zero
)
223
if (nanMask != Vector512<T>.
Zero
)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (1)
92
if (equalMask != Vector512<T>.
Zero
)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (1)
89
if (equalMask != Vector512<T>.
Zero
)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (1)
92
if (equalMask != Vector512<T>.
Zero
)
System\Numerics\Tensors\netcore\TensorPrimitives.IsPow2.cs (2)
66
Vector512.Equals(x & (x - Vector512<T>.One), Vector512<T>.
Zero
) &
67
Vector512.GreaterThan(x, Vector512<T>.
Zero
);
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (1)
55
public static Vector512<T> Invoke(Vector512<T> x) => Vector512.Equals(x, Vector512<T>.
Zero
);
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (3)
402
if (nanMask != Vector512<T>.
Zero
)
421
if (nanMask != Vector512<T>.
Zero
)
440
if (nanMask != Vector512<T>.
Zero
)
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (5)
95
return Vector512.ConditionalSelect(Vector512.Equals(x, Vector512<T>.
Zero
).AsInt32(),
96
Vector512<int>.
Zero
,
111
return Vector512.ConditionalSelect(Vector512.LessThan(x, Vector512<T>.
Zero
).AsInt32(),
113
Vector512.ConditionalSelect(Vector512.GreaterThan(x, Vector512<T>.
Zero
).AsInt32(),
115
Vector512<int>.
Zero
));
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (2)
221
return Vector512.ConditionalSelect(Vector512.Equals(odd, Vector512<uint>.
Zero
).AsSingle(),
390
return Vector512.ConditionalSelect(Vector512.Equals(odd, Vector512<ulong>.
Zero
).AsDouble(),
System.Private.CoreLib (60)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (13)
2024
return Vector512<T>.
Zero
;
2048
return Vector512<T>.
Zero
;
2062
return Vector512<T>.
Zero
;
2066
return LessThan(vector.AsInt32(), Vector512<int>.
Zero
).As<int, T>();
2070
return LessThan(vector.AsInt64(), Vector512<long>.
Zero
).As<long, T>();
2074
return LessThan(vector, Vector512<T>.
Zero
);
2091
return Vector512<T>.
Zero
;
2141
return GreaterThanOrEqual(vector.AsInt32(), Vector512<int>.
Zero
).As<int, T>();
2145
return GreaterThanOrEqual(vector.AsInt64(), Vector512<long>.
Zero
).As<long, T>();
2149
return GreaterThanOrEqual(vector, Vector512<T>.
Zero
);
2166
return Vector512<T>.
Zero
;
2182
return Vector512<T>.
Zero
;
2188
public 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)
351
return
Zero
- vector;
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (5)
138
return Vector512.Equals(bitMask & bitPositions, Vector512<byte>.
Zero
);
437
if (result != Vector512<byte>.
Zero
)
467
if (result != Vector512<byte>.
Zero
)
615
if (result != Vector512<byte>.
Zero
)
644
if (result != Vector512<byte>.
Zero
)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (3)
321
if (result != Vector512<byte>.
Zero
)
503
if (result != Vector512<byte>.
Zero
)
632
ulong resultMask = (~Vector512.Equals(result, Vector512<byte>.
Zero
)).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (1)
108
if (result != Vector512<byte>.
Zero
)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (3)
92
if (cmpAnd != Vector512<byte>.
Zero
)
319
if (cmpAnd != Vector512<byte>.
Zero
)
573
ulong matches = Vector512.Equals(Vector512<byte>.
Zero
, search).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (4)
96
if (cmpAnd != Vector512<byte>.
Zero
)
335
if (cmpAnd != Vector512<byte>.
Zero
)
654
if (!Vector512.EqualsAny(search, Vector512<ushort>.
Zero
))
667
ulong matches = Vector512.Equals(search, Vector512<ushort>.
Zero
).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (4)
578
if (result != Vector512<byte>.
Zero
)
602
if (result != Vector512<byte>.
Zero
)
794
if (result != Vector512<byte>.
Zero
)
818
if (result != Vector512<byte>.
Zero
)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (20)
1814
if (equals == Vector512<TValue>.
Zero
)
1829
if (equals != Vector512<TValue>.
Zero
)
2021
if (equals == Vector512<TValue>.
Zero
)
2036
if (equals != Vector512<TValue>.
Zero
)
2178
if (equals == Vector512<TValue>.
Zero
)
2194
if (equals != Vector512<TValue>.
Zero
)
2342
if (equals == Vector512<TValue>.
Zero
)
2358
if (equals != Vector512<TValue>.
Zero
)
2661
if (equals == Vector512<TValue>.
Zero
)
2675
if (equals != Vector512<TValue>.
Zero
)
2846
if (equals == Vector512<TValue>.
Zero
)
2860
if (equals != Vector512<TValue>.
Zero
)
2996
if (equals == Vector512<TValue>.
Zero
)
3010
if (equals != Vector512<TValue>.
Zero
)
3255
if (equals == Vector512<TValue>.
Zero
)
3270
if (equals != Vector512<TValue>.
Zero
)
3603
if (inRangeVector != Vector512<T>.
Zero
)
3614
if (inRangeVector != Vector512<T>.
Zero
)
3745
if (inRangeVector != Vector512<T>.
Zero
)
3755
if (inRangeVector != Vector512<T>.
Zero
)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2057
if (cmp != Vector512<byte>.
Zero
)
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (3)
261
if (notEquals != Vector512<TRight>.
Zero
)
292
if (notEquals != Vector512<TRight>.
Zero
)
594
if (((leftLower ^ right) | (leftUpper ^ rightNext)) != Vector512<ushort>.
Zero
)
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
1594
return zeroIsAscii != Vector512<ushort>.
Zero
;
1661
return (vector.AsUInt16() & Vector512.Create((ushort)0xFF80)) == Vector512<ushort>.
Zero
;