Inline GpuUInt128 Mul64 helper
This commit is contained in:
1 parent
9c08cf48a7
commit
1809ba95b3
8 files changed
+108
-114
No files matched your search
@@ -13,7 +13,7 @@ public static partial class ULongExtensions
|
||||
public static ulong MulHighGpuCompatible(this ulong x, ulong y)
|
||||
{
|
||||
GpuUInt128 product = new(x);
|
||||
product.Mul64(new GpuUInt128(y));
|
||||
GpuUInt128.Mul64(ref product, 0UL, y);
|
||||
return product.High;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user