35 references to AsUInt32
System.Numerics.Tensors (30)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (5)
79
typeof(T) == typeof(float) ? Vector512.EqualsAny(result.
AsUInt32
(), Vector512<uint>.Zero) :
487
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)i)).
AsUInt32
(),
488
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + Vector512<T>.Count))).
AsUInt32
()),
490
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + (2 * Vector512<T>.Count)))).
AsUInt32
(),
491
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + (3 * Vector512<T>.Count)))).
AsUInt32
()));
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)
100
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)
104
return (value >> 31) | ((-value).
AsUInt32
() >> 31).AsInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (2)
121
Vector512<uint> sign = x.
AsUInt32
() & Vector512.Create(~(uint)int.MaxValue);
122
return (sign ^ result.
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
100
if (Vector512.GreaterThanAny(xpi.
AsUInt32
() & Vector512.Create(SinOperatorSingle.SignMask), Vector512.Create(SinOperatorSingle.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (4)
201
if (Vector512.GreaterThanAny(uxMasked.
AsUInt32
(), Vector512.Create(MaxVectorizedValue)))
207
Vector512<uint> odd = dn.
AsUInt32
() << 31;
227
Vector512<float> result = (poly.
AsUInt32
() ^ (x.
AsUInt32
() & Vector512.Create(~SignMask))).AsSingle();
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
122
Vector512<uint> sign = x.
AsUInt32
() & Vector512.Create(~(uint)int.MaxValue);
123
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)
2017
return ~IsZero(AndNot(Create<uint>(float.PositiveInfinityBits), vector.
AsUInt32
())).As<uint, T>();
2112
return LessThan(Abs(vector).
AsUInt32
() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>();
2187
return LessThan(Abs(vector).
AsUInt32
() - Vector512<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>();