62 references to AsUInt32
System.IO.Hashing (3)
System\IO\Hashing\Adler32.cs (3)
394vs1 += Avx2.SumAbsoluteDifferences(data, Vector256<byte>.Zero).AsUInt32(); 398vs2 += Avx2.MultiplyAddAdjacent(mad, Vector256<short>.One).AsUInt32(); 459Vector256<uint> sumLo = Avx2.SumAbsoluteDifferences(data.GetLower(), Vector256<byte>.Zero).AsUInt32();
System.Numerics.Tensors (49)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (5)
56typeof(T) == typeof(float) ? Vector256.EqualsAny(result.AsUInt32(), Vector256<uint>.Zero) : 507TOperator.Invoke(Vector256.LoadUnsafe(ref xRef, (uint)i)).AsUInt32(), 508TOperator.Invoke(Vector256.LoadUnsafe(ref xRef, (uint)(i + Vector256<T>.Count))).AsUInt32()), 510TOperator.Invoke(Vector256.LoadUnsafe(ref xRef, (uint)(i + (2 * Vector256<T>.Count)))).AsUInt32(), 511TOperator.Invoke(Vector256.LoadUnsafe(ref xRef, (uint)(i + (3 * Vector256<T>.Count)))).AsUInt32()));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (12)
441resultIndex1 = ElementWiseSelect(mask1.AsUInt32(), currentIndex, resultIndex1); 443resultIndex2 = ElementWiseSelect(mask2.AsUInt32(), currentIndex, resultIndex2); 453Vector256<uint> aggIndex = resultIndex1 | mask1.AsUInt32(); 454aggIndex = MinOperator<uint>.Invoke(aggIndex, resultIndex2 | mask2.AsUInt32()); 520resultIndex1 = ElementWiseSelect(mask1.AsUInt32(), currentIndex, resultIndex1); 522resultIndex2 = ElementWiseSelect(mask2.AsUInt32(), currentIndex, resultIndex2); 524resultIndex3 = ElementWiseSelect(mask3.AsUInt32(), currentIndex, resultIndex3); 526resultIndex4 = ElementWiseSelect(mask4.AsUInt32(), currentIndex, resultIndex4); 538Vector256<uint> aggIndex = resultIndex1 | mask1.AsUInt32(); 539aggIndex = MinOperator<uint>.Invoke(aggIndex, resultIndex2 | mask2.AsUInt32()); 540aggIndex = MinOperator<uint>.Invoke(aggIndex, resultIndex3 | mask3.AsUInt32()); 541aggIndex = MinOperator<uint>.Invoke(aggIndex, resultIndex4 | mask4.AsUInt32());
System\Numerics\Tensors\netcore\TensorPrimitives.BitDecrement.cs (4)
98Vector256<uint> bits = xFloat.AsUInt32(); 102Vector256.IsNegative(xFloat).AsUInt32(), 107Vector256<uint> isPositiveZero = Vector256.IsZero(xFloat).AsUInt32(); 110Vector256<uint> isNaNOrNegInf = (Vector256.IsNaN(xFloat) | Vector256.IsNegativeInfinity(xFloat)).AsUInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.BitIncrement.cs (3)
98Vector256<uint> bits = xFloat.AsUInt32(); 102Vector256.IsNegative(xFloat).AsUInt32(), 110Vector256<uint> isNaNOrPosInf = (Vector256.IsNaN(xFloat) | Vector256.IsPositiveInfinity(xFloat)).AsUInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (7)
448(HalfAsWidenedUInt32ToSingle(lowerInt32.AsUInt32()), 449HalfAsWidenedUInt32ToSingle(upperInt32.AsUInt32())); 489Vector256<uint> absoluteValue = (bitValueInProcess.AsSingle() - maskedExponentLowerBound.AsSingle()).AsUInt32(); 645Vector256<uint> bitValue = value.AsUInt32(); 651Vector256<uint> realMask = Vector256.Equals(value, value).AsUInt32(); 660Vector256<uint> exponentOffset0 = Vector256.Max(value, Vector256.Create(MinExp).AsSingle()).AsUInt32(); 670bitValue = value.AsUInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
77if (Vector256.GreaterThanAny(xpi.AsUInt32() & Vector256.Create(CosOperatorSingle.SignMask), Vector256.Create(CosOperatorSingle.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
128if (sizeof(T) == 4) return Avx2.BlendVariable(left.AsUInt32(), right.AsUInt32(), (~mask).AsUInt32()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (3)
138Vector256<uint> x_bot16 = (x.AsUInt32() << 16) | lowHalf; 139Vector256<uint> x_top16 = x.AsUInt32() | lowHalf; 148return Avx512CD.VL.LeadingZeroCount(x.AsUInt32()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (1)
175Vector256<uint> tmp = x.AsUInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (1)
75return (value >> 31) | ((-value).AsUInt32() >> 31).AsInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (2)
96Vector256<uint> sign = x.AsUInt32() & Vector256.Create(~(uint)int.MaxValue); 97return (sign ^ result.AsUInt32()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
77if (Vector256.GreaterThanAny(xpi.AsUInt32() & Vector256.Create(SinOperatorSingle.SignMask), Vector256.Create(SinOperatorSingle.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (4)
166if (Vector256.GreaterThanAny(uxMasked.AsUInt32(), Vector256.Create(MaxVectorizedValue))) 172Vector256<uint> odd = dn.AsUInt32() << 31; 192Vector256<float> result = (poly.AsUInt32() ^ (x.AsUInt32() & Vector256.Create(~SignMask))).AsSingle();
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
100Vector256<uint> sign = x.AsUInt32() & Vector256.Create(~(uint)int.MaxValue); 101return (sign ^ (-z / (z + Vector256.Create(2f))).AsUInt32()).As<uint, T>();
System.Private.CoreLib (10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (6)
537lowerBits = vector.AsUInt32(); 538lowerBits = Avx2.Blend(lowerBits, Create(0x43300000_00000000UL).AsUInt32(), 0b10101010); // Blend the 32 lowest significant bits of vector with the bit representation of double(2^52) */ 2267return ~IsZero(AndNot(Vector256<float>.PositiveInfinity.AsUInt32(), vector.AsUInt32())).As<uint, T>(); 2358return LessThan(Abs(vector).AsUInt32() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>(); 2429return LessThan(Abs(vector).AsUInt32() - Vector256<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (4)
111public readonly uint Value32_0 => Value256.AsUInt32()[0]; 112public readonly uint Value32_1 => Value256.AsUInt32()[1]; 116public readonly uint ToUpperMask32_0 => ToUpperMask256.AsUInt32()[0]; 117public readonly uint ToUpperMask32_1 => ToUpperMask256.AsUInt32()[1];