78 references to AsUInt64
GenerateDocumentationAndConfigFiles (3)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (3)
698
Vector128<ulong> sum = accVec + sourceSwap.
AsUInt64
();
719
(source & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
() * (sourceLow & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
();
Microsoft.CodeAnalysis (3)
Hashing\XxHashShared.cs (3)
698
Vector128<ulong> sum = accVec + sourceSwap.
AsUInt64
();
719
(source & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
() * (sourceLow & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
();
Microsoft.CodeAnalysis.Workspaces (3)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (3)
698
Vector128<ulong> sum = accVec + sourceSwap.
AsUInt64
();
719
(source & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
() * (sourceLow & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
();
System.IO.Hashing (19)
System\IO\Hashing\Crc32.Vectorized.cs (13)
47
x1 = Vector128.LoadUnsafe(ref srcRef).
AsUInt64
();
48
x2 = Vector128.LoadUnsafe(ref srcRef, 16).
AsUInt64
();
49
Vector128<ulong> x3 = Vector128.LoadUnsafe(ref srcRef, 32).
AsUInt64
();
50
Vector128<ulong> x4 = Vector128.LoadUnsafe(ref srcRef, 48).
AsUInt64
();
56
x1 ^= Vector128.CreateScalar(crc).
AsUInt64
();
63
Vector128<ulong> y5 = Vector128.LoadUnsafe(ref srcRef).
AsUInt64
();
64
Vector128<ulong> y6 = Vector128.LoadUnsafe(ref srcRef, 16).
AsUInt64
();
65
Vector128<ulong> y7 = Vector128.LoadUnsafe(ref srcRef, 32).
AsUInt64
();
66
Vector128<ulong> y8 = Vector128.LoadUnsafe(ref srcRef, 48).
AsUInt64
();
88
x1 = Vector128.LoadUnsafe(ref srcRef).
AsUInt64
();
89
x1 ^= Vector128.CreateScalar(crc).
AsUInt64
();
98
x1 = FoldPolynomialPair(Vector128.LoadUnsafe(ref srcRef).
AsUInt64
(), x1,
106
Vector128<ulong> bitmask = Vector128.Create(~0, 0, ~0, 0).
AsUInt64
();
System\IO\Hashing\Crc64.Vectorized.cs (1)
31
return vector.
AsUInt64
();
System\IO\Hashing\VectorHelper.cs (2)
110
return AdvSimd.ExtractVector128(operand.AsByte(), Vector128<byte>.Zero, numBytesToShift).
AsUInt64
();
127
return AdvSimd.ExtractVector128(Vector128<byte>.Zero, operand.AsByte(), 8).
AsUInt64
();
System\IO\Hashing\XxHashShared.cs (3)
689
Vector128<ulong> sum = accVec + sourceSwap.
AsUInt64
();
710
(source & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
() * (sourceLow & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
();
System.Numerics.Tensors (23)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (9)
70
typeof(T) == typeof(double) ? Vector128.EqualsAny(result.
AsUInt64
(), Vector128<ulong>.Zero) :
713
TOperator.Invoke(Vector128.LoadUnsafe(ref xRef, (uint)i)).
AsUInt64
(),
714
TOperator.Invoke(Vector128.LoadUnsafe(ref xRef, (uint)(i + Vector128<T>.Count))).
AsUInt64
()),
716
TOperator.Invoke(Vector128.LoadUnsafe(ref xRef, (uint)(i + (2 * Vector128<T>.Count)))).
AsUInt64
(),
717
TOperator.Invoke(Vector128.LoadUnsafe(ref xRef, (uint)(i + (3 * Vector128<T>.Count)))).
AsUInt64
())),
720
TOperator.Invoke(Vector128.LoadUnsafe(ref xRef, (uint)(i + (4 * Vector128<T>.Count)))).
AsUInt64
(),
721
TOperator.Invoke(Vector128.LoadUnsafe(ref xRef, (uint)(i + (5 * Vector128<T>.Count)))).
AsUInt64
()),
723
TOperator.Invoke(Vector128.LoadUnsafe(ref xRef, (uint)(i + (6 * Vector128<T>.Count)))).
AsUInt64
(),
724
TOperator.Invoke(Vector128.LoadUnsafe(ref xRef, (uint)(i + (7 * Vector128<T>.Count)))).
AsUInt64
())));
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
62
if (Vector128.GreaterThanAny(xpi.
AsUInt64
() & Vector128.Create(CosOperatorDouble.SignMask), Vector128.Create(CosOperatorDouble.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
480
if (sizeof(T) == 8) return Sse41.BlendVariable(left.
AsUInt64
(), right.
AsUInt64
(), (~mask).
AsUInt64
()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
76
return Avx512CD.VL.LeadingZeroCount(x.
AsUInt64
()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (2)
82
Vector128<ulong> sign = x.
AsUInt64
() & Vector128.Create(~(ulong)long.MaxValue);
83
return (sign ^ result.
AsUInt64
()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
62
if (Vector128.GreaterThanAny(xpi.
AsUInt64
() & Vector128.Create(SinOperatorDouble.SignMask), Vector128.Create(SinOperatorDouble.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (4)
264
if (Vector128.GreaterThanAny(uxMasked.
AsUInt64
(), Vector128.Create(MaxVectorizedValue)))
271
Vector128<ulong> odd = dn.
AsUInt64
() << 63;
302
Vector128<double> result = (poly.
AsUInt64
() ^ (x.
AsUInt64
() & Vector128.Create(~SignMask))).AsDouble();
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
87
Vector128<ulong> sign = x.
AsUInt64
() & Vector128.Create(~(ulong)long.MaxValue);
88
return (sign ^ (-z / (z + Vector128.Create(2d))).
AsUInt64
()).As<ulong, T>();
System.Private.CoreLib (24)
src\libraries\Common\src\System\HexConverter.cs (2)
104
Vector128<byte> shiftedSrc = Vector128.ShiftRightLogical(src.
AsUInt64
(), 4).AsByte();
334
Unsafe.WriteUnaligned(ref Unsafe.Add(ref destRef, offset / 2), output.
AsUInt64
().ToScalar());
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (3)
1902
return ~IsZero(AndNot(Create<ulong>(double.PositiveInfinityBits), vector.
AsUInt64
())).As<ulong, T>();
1997
return LessThan(Abs(vector).
AsUInt64
() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>();
2072
return LessThan(Abs(vector).
AsUInt64
() - Vector128<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (1)
410
Vector128<ulong> widenedBlock = Vector128.WidenLower(blockAsVectorOfUInt32.AsByte()).
AsUInt64
();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (8)
79
ulong mask = extractedBits.
AsUInt64
().ToScalar();
1151
ulong asciiCompareMask = AdvSimd.Arm64.UnzipOdd(compareResult, compareResult).
AsUInt64
().ToScalar();
1536
return (maxBytes.
AsUInt64
().ToScalar() & 0x8080808080808080) != 0;
1568
return (maxChars.
AsUInt64
().ToScalar() & 0xFF80FF80FF80FF80) != 0;
1619
AdvSimd.Arm64.IsSupported ? AllBytesInUInt64AreAscii(AdvSimd.Arm64.MaxPairwise(vector.AsByte(), vector.AsByte()).
AsUInt64
().ToScalar()) :
1625
AdvSimd.Arm64.IsSupported ? AllCharsInUInt64AreAscii(AdvSimd.Arm64.MaxPairwise(vector.AsUInt16(), vector.AsUInt16()).
AsUInt64
().ToScalar()) :
2281
Vector128<ulong> vecWide = AdvSimd.Arm64.ZipLow(vecNarrow, Vector128<byte>.Zero).
AsUInt64
();
2287
Vector128<ulong> vecWide = Vector128.WidenLower(vecNarrow).
AsUInt64
();
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (4)
814
Sse2.StoreScalar((ulong*)pLatin1Buffer, latin1Vector.
AsUInt64
()); // ulong* calculated here is UNALIGNED
855
Sse2.StoreScalar((ulong*)(pLatin1Buffer + currentOffsetInElements), latin1Vector.
AsUInt64
()); // ulong* calculated here is UNALIGNED
935
Sse2.StoreScalar((ulong*)(pLatin1Buffer + currentOffsetInElements), latin1Vector.
AsUInt64
()); // ulong* calculated here is aligned
1046
Sse2.StoreScalar((ulong*)(pUtf16Buffer + currentOffset), Sse2.UnpackLow(latin1Vector, zeroVector).
AsUInt64
()); // unaligned write
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (5)
964
bool hasNonAsciiDataInVector = AdvSimd.Arm64.MinPairwise(isUtf16DataNonAscii, isUtf16DataNonAscii).
AsUInt64
().ToScalar() != 0;
982
Sse2.StoreScalar((ulong*)pOutputBuffer /* unaligned */, Sse2.PackUnsignedSaturate(utf16Data, utf16Data).
AsUInt64
());
1036
possibleNonAsciiQWord = Sse2.X64.ConvertToUInt64(utf16Data.
AsUInt64
());
1040
possibleNonAsciiQWord = utf16Data.
AsUInt64
().ToScalar();
1068
possibleNonAsciiQWord = utf16Data.
AsUInt64
().GetElement(1);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Validation.cs (1)
763
return extractedBits.
AsUInt64
().ToScalar();
Test.Utilities (3)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (3)
698
Vector128<ulong> sum = accVec + sourceSwap.
AsUInt64
();
719
(source & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
() * (sourceLow & Vector128.Create(~0u, 0u, ~0u, 0u)).
AsUInt64
();