35 references to AsUInt32
System.Numerics.Tensors (26)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
74
typeof(T) == typeof(float) ? Vector256.EqualsAny(result.
AsUInt32
(), Vector256<uint>.Zero) :
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (7)
450
(HalfAsWidenedUInt32ToSingle(lowerInt32.
AsUInt32
()),
451
HalfAsWidenedUInt32ToSingle(upperInt32.
AsUInt32
()));
491
Vector256<uint> absoluteValue = (bitValueInProcess.AsSingle() - maskedExponentLowerBound.AsSingle()).
AsUInt32
();
647
Vector256<uint> bitValue = value.
AsUInt32
();
653
Vector256<uint> realMask = Vector256.Equals(value, value).
AsUInt32
();
662
Vector256<uint> exponentOffset0 = Vector256.Max(value, Vector256.Create(MinExp).AsSingle()).
AsUInt32
();
672
bitValue = value.
AsUInt32
();
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
70
if (Vector256.GreaterThanAny(xpi.
AsUInt32
() & Vector256.Create(CosOperatorSingle.SignMask), Vector256.Create(CosOperatorSingle.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
496
if (sizeof(T) == 4) return Avx2.BlendVariable(left.
AsUInt32
(), right.
AsUInt32
(), (~mask).
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (3)
112
Vector256<uint> x_bot16 = Avx2.Or(Avx2.ShiftLeftLogical(x.
AsUInt32
(), 16), lowHalf);
113
Vector256<uint> x_top16 = Avx2.Or(x.
AsUInt32
(), lowHalf);
122
return Avx512CD.VL.LeadingZeroCount(x.
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (1)
175
Vector256<uint> tmp = x.
AsUInt32
();
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (1)
76
return (value >> 31) | ((-value).
AsUInt32
() >> 31).AsInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (2)
89
Vector256<uint> sign = x.
AsUInt32
() & Vector256.Create(~(uint)int.MaxValue);
90
return (sign ^ result.
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
70
if (Vector256.GreaterThanAny(xpi.
AsUInt32
() & Vector256.Create(SinOperatorSingle.SignMask), Vector256.Create(SinOperatorSingle.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (4)
159
if (Vector256.GreaterThanAny(uxMasked.
AsUInt32
(), Vector256.Create(MaxVectorizedValue)))
165
Vector256<uint> odd = dn.
AsUInt32
() << 31;
185
Vector256<float> result = (poly.
AsUInt32
() ^ (x.
AsUInt32
() & Vector256.Create(~SignMask))).AsSingle();
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
93
Vector256<uint> sign = x.
AsUInt32
() & Vector256.Create(~(uint)int.MaxValue);
94
return (sign ^ (-z / (z + Vector256.Create(2f))).
AsUInt32
()).As<uint, T>();
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (5)
454
lowerBits = vector.
AsUInt32
();
455
lowerBits = Avx2.Blend(lowerBits, Create(0x43300000_00000000UL).
AsUInt32
(), 0b10101010); // Blend the 32 lowest significant bits of vector with the bit representation of double(2^52) */
1979
return ~IsZero(AndNot(Create<uint>(float.PositiveInfinityBits), vector.
AsUInt32
())).As<uint, T>();
2074
return LessThan(Abs(vector).
AsUInt32
() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>();
2149
return LessThan(Abs(vector).
AsUInt32
() - Vector256<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (4)
110
public readonly uint Value32_0 => Value256.
AsUInt32
()[0];
111
public readonly uint Value32_1 => Value256.
AsUInt32
()[1];
115
public readonly uint ToUpperMask32_0 => ToUpperMask256.
AsUInt32
()[0];
116
public readonly uint ToUpperMask32_1 => ToUpperMask256.
AsUInt32
()[1];