31 references to AsUInt32
System.Numerics.Tensors (26)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
79
typeof(T) == typeof(float) ? Vector512.EqualsAny(result.
AsUInt32
(), Vector512<uint>.Zero) :
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (7)
502
(HalfAsWidenedUInt32ToSingle(lowerInt32.
AsUInt32
()),
503
HalfAsWidenedUInt32ToSingle(upperInt32.
AsUInt32
()));
543
Vector512<uint> absoluteValue = (bitValueInProcess.AsSingle() - maskedExponentLowerBound.AsSingle()).
AsUInt32
();
711
Vector512<uint> bitValue = value.
AsUInt32
();
717
Vector512<uint> realMask = Vector512.Equals(value, value).
AsUInt32
();
726
Vector512<uint> exponentOffset0 = Vector512.Max(value, Vector512.Create(MinExp).AsSingle()).
AsUInt32
();
736
bitValue = value.
AsUInt32
();
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
93
if (Vector512.GreaterThanAny(xpi.
AsUInt32
() & Vector512.Create(CosOperatorSingle.SignMask), Vector512.Create(CosOperatorSingle.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
511
if (sizeof(T) == 4) return Avx512F.BlendVariable(left.
AsUInt32
(), right.
AsUInt32
(), (~mask).
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (3)
163
Vector512<uint> x_bot16 = Avx512F.Or(Avx512F.ShiftLeftLogical(x.
AsUInt32
(), 16), lowHalf);
164
Vector512<uint> x_top16 = Avx512F.Or(x.
AsUInt32
(), lowHalf);
173
return Avx512CD.LeadingZeroCount(x.
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (1)
223
Vector512<uint> tmp = x.
AsUInt32
();
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (1)
102
return (value >> 31) | ((-value).
AsUInt32
() >> 31).AsInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (2)
114
Vector512<uint> sign = x.
AsUInt32
() & Vector512.Create(~(uint)int.MaxValue);
115
return (sign ^ result.
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
93
if (Vector512.GreaterThanAny(xpi.
AsUInt32
() & Vector512.Create(SinOperatorSingle.SignMask), Vector512.Create(SinOperatorSingle.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (4)
194
if (Vector512.GreaterThanAny(uxMasked.
AsUInt32
(), Vector512.Create(MaxVectorizedValue)))
200
Vector512<uint> odd = dn.
AsUInt32
() << 31;
220
Vector512<float> result = (poly.
AsUInt32
() ^ (x.
AsUInt32
() & Vector512.Create(~SignMask))).AsSingle();
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
115
Vector512<uint> sign = x.
AsUInt32
() & Vector512.Create(~(uint)int.MaxValue);
116
return (sign ^ (-z / (z + Vector512.Create(2f))).
AsUInt32
()).As<uint, T>();
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (2)
190
str = Vector512.ConditionalSelect(maskBB, temp3.
AsUInt32
(), temp2.
AsUInt32
()).AsSByte();
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (3)
2006
return ~IsZero(AndNot(Create<uint>(float.PositiveInfinityBits), vector.
AsUInt32
())).As<uint, T>();
2101
return LessThan(Abs(vector).
AsUInt32
() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>();
2176
return LessThan(Abs(vector).
AsUInt32
() - Vector512<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>();