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