26 references to AsUInt64
System.Numerics.Tensors (23)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (9)
80
typeof(T) == typeof(double) ? Vector512.EqualsAny(result.
AsUInt64
(), Vector512<ulong>.Zero) :
617
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)i)).
AsUInt64
(),
618
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + Vector512<T>.Count))).
AsUInt64
()),
620
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + (2 * Vector512<T>.Count)))).
AsUInt64
(),
621
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + (3 * Vector512<T>.Count)))).
AsUInt64
())),
624
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + (4 * Vector512<T>.Count)))).
AsUInt64
(),
625
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + (5 * Vector512<T>.Count)))).
AsUInt64
()),
627
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + (6 * Vector512<T>.Count)))).
AsUInt64
(),
628
TOperator.Invoke(Vector512.LoadUnsafe(ref xRef, (uint)(i + (7 * Vector512<T>.Count)))).
AsUInt64
())));
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
108
if (Vector512.GreaterThanAny(xpi.
AsUInt64
() & Vector512.Create(CosOperatorDouble.SignMask), Vector512.Create(CosOperatorDouble.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
512
if (sizeof(T) == 8) return Avx512F.BlendVariable(left.
AsUInt64
(), right.
AsUInt64
(), (~mask).
AsUInt64
()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
178
return Avx512CD.LeadingZeroCount(x.
AsUInt64
()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (2)
132
Vector512<ulong> sign = x.
AsUInt64
() & Vector512.Create(~(ulong)long.MaxValue);
133
return (sign ^ result.
AsUInt64
()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
108
if (Vector512.GreaterThanAny(xpi.
AsUInt64
() & Vector512.Create(SinOperatorDouble.SignMask), Vector512.Create(SinOperatorDouble.MaxVectorizedValue)))
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (4)
358
if (Vector512.GreaterThanAny(uxMasked.
AsUInt64
(), Vector512.Create(MaxVectorizedValue)))
365
Vector512<ulong> odd = dn.
AsUInt64
() << 63;
396
Vector512<double> result = (poly.
AsUInt64
() ^ (x.
AsUInt64
() & Vector512.Create(~SignMask))).AsDouble();
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
131
Vector512<ulong> sign = x.
AsUInt64
() & Vector512.Create(~(ulong)long.MaxValue);
132
return (sign ^ (-z / (z + Vector512.Create(2d))).
AsUInt64
()).As<ulong, T>();
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (3)
2021
return ~IsZero(AndNot(Create<ulong>(double.PositiveInfinityBits), vector.
AsUInt64
())).As<ulong, T>();
2116
return LessThan(Abs(vector).
AsUInt64
() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>();
2191
return LessThan(Abs(vector).
AsUInt64
() - Vector512<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>();