39 references to AsUInt32
System.IO.Hashing (1)
System\IO\Hashing\Crc32.Vectorized.cs (1)
119
uint result = x1.
AsUInt32
().GetElement(1);
System.Numerics.Tensors (27)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
69
typeof(T) == typeof(float) ? Vector128.EqualsAny(result.
AsUInt32
(), Vector128<uint>.Zero) :
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (7)
398
(HalfAsWidenedUInt32ToSingle(lowerInt32.
AsUInt32
()),
399
HalfAsWidenedUInt32ToSingle(upperInt32.
AsUInt32
()));
439
Vector128<uint> absoluteValue = (bitValueInProcess.AsSingle() - maskedExponentLowerBound.AsSingle()).
AsUInt32
();
583
Vector128<uint> bitValue = value.
AsUInt32
();
589
Vector128<uint> realMask = Vector128.Equals(value, value).
AsUInt32
();
598
Vector128<uint> exponentOffset0 = Vector128.Max(value, Vector128.Create(MinExp).AsSingle()).
AsUInt32
();
608
bitValue = value.
AsUInt32
();
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
47
if (Vector128.GreaterThanAny(xpi.
AsUInt32
() & Vector128.Create(CosOperatorSingle.SignMask), Vector128.Create(CosOperatorSingle.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
479
if (sizeof(T) == 4) return Sse41.BlendVariable(left.
AsUInt32
(), right.
AsUInt32
(), (~mask).
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (4)
61
Vector128<uint> x_bot16 = Sse2.Or(Sse2.ShiftLeftLogical(x.
AsUInt32
(), 16), lowHalf);
62
Vector128<uint> x_top16 = Sse2.Or(x.
AsUInt32
(), lowHalf);
71
return Avx512CD.VL.LeadingZeroCount(x.
AsUInt32
()).As<uint, T>();
86
return AdvSimd.LeadingZeroCount(x.
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (1)
127
Vector128<uint> tmp = x.
AsUInt32
();
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (1)
49
return (value >> 31) | ((-value).
AsUInt32
() >> 31).AsInt32();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (2)
64
Vector128<uint> sign = x.
AsUInt32
() & Vector128.Create(~(uint)int.MaxValue);
65
return (sign ^ result.
AsUInt32
()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
47
if (Vector128.GreaterThanAny(xpi.
AsUInt32
() & Vector128.Create(SinOperatorSingle.SignMask), Vector128.Create(SinOperatorSingle.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (4)
124
if (Vector128.GreaterThanAny(uxMasked.
AsUInt32
(), Vector128.Create(MaxVectorizedValue)))
130
Vector128<uint> odd = dn.
AsUInt32
() << 31;
150
Vector128<float> result = (poly.
AsUInt32
() ^ (x.
AsUInt32
() & Vector128.Create(~SignMask))).AsSingle();
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
71
Vector128<uint> sign = x.
AsUInt32
() & Vector128.Create(~(uint)int.MaxValue);
72
return (sign ^ (-z / (z + Vector128.Create(2f))).
AsUInt32
()).As<uint, T>();
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (7)
411
lowerBits = vector.
AsUInt32
();
412
lowerBits = Avx2.Blend(lowerBits, Create(0x43300000_00000000UL).
AsUInt32
(), 0b1010); // Blend the 32 lowest significant bits of vector with the bit representation of double(2^52)
416
lowerBits = Sse2.And(vector, Create(0x00000000_FFFFFFFFUL)).
AsUInt32
();
417
lowerBits = Sse2.Or(lowerBits, Create(0x43300000_00000000UL).
AsUInt32
());
1875
return ~IsZero(AndNot(Create<uint>(float.PositiveInfinityBits), vector.
AsUInt32
())).As<uint, T>();
1970
return LessThan(Abs(vector).
AsUInt32
() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>();
2045
return LessThan(Abs(vector).
AsUInt32
() - Vector128<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
1276
Vector128<uint> vecNarrow = Sse2.PackUnsignedSaturate(vecWide, vecWide).
AsUInt32
();
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.Helpers.cs (1)
59
Vector128<uint> vecNarrow = Sse2.PackUnsignedSaturate(vecWide, vecWide).
AsUInt32
();
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (2)
1015
Unsafe.WriteUnaligned(pOutputBuffer, Sse2.ConvertToUInt32(Sse2.PackUnsignedSaturate(utf16Data, utf16Data).
AsUInt32
()));
1058
Unsafe.WriteUnaligned(pOutputBuffer, Sse2.ConvertToUInt32(Sse2.PackUnsignedSaturate(utf16Data, utf16Data).
AsUInt32
()));