56 references to 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 (13)
System\IO\Hashing\Crc32.Vectorized.cs (7)
47x1 = Vector128.LoadUnsafe(ref srcRef).AsUInt64(); 56x1 ^= Vector128.CreateScalar(crc).AsUInt64(); 63Vector128<ulong> y5 = Vector128.LoadUnsafe(ref srcRef).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 (15)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
70typeof(T) == typeof(double) ? Vector128.EqualsAny(result.AsUInt64(), Vector128<ulong>.Zero) :
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
55if (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)
75Vector128<ulong> sign = x.AsUInt64() & Vector128.Create(~(ulong)long.MaxValue); 76return (sign ^ result.AsUInt64()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
55if (Vector128.GreaterThanAny(xpi.AsUInt64() & Vector128.Create(SinOperatorDouble.SignMask), Vector128.Create(SinOperatorDouble.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (4)
257if (Vector128.GreaterThanAny(uxMasked.AsUInt64(), Vector128.Create(MaxVectorizedValue))) 264Vector128<ulong> odd = dn.AsUInt64() << 63; 295Vector128<double> result = (poly.AsUInt64() ^ (x.AsUInt64() & Vector128.Create(~SignMask))).AsDouble();
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
80Vector128<ulong> sign = x.AsUInt64() & Vector128.Create(~(ulong)long.MaxValue); 81return (sign ^ (-z / (z + Vector128.Create(2d))).AsUInt64()).As<ulong, T>();
System.Private.CoreLib (22)
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)
1879return ~IsZero(AndNot(Create<ulong>(double.PositiveInfinityBits), vector.AsUInt64())).As<ulong, T>(); 1974return LessThan(Abs(vector).AsUInt64() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>(); 2049return LessThan(Abs(vector).AsUInt64() - Vector128<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (7)
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();
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();