Performance improvement
This commit is contained in:
1 parent
c4ba758359
commit
7fc9f7320d
1 file changed
+2
-2
@@ -78,8 +78,8 @@ public class Mul64Benchmarks
|
|||||||
{
|
{
|
||||||
GpuUInt128 gpuLeft = new((ulong)(left >> 64), (ulong)left);
|
GpuUInt128 gpuLeft = new((ulong)(left >> 64), (ulong)left);
|
||||||
GpuUInt128 gpuRight = new((ulong)(right >> 64), (ulong)right);
|
GpuUInt128 gpuRight = new((ulong)(right >> 64), (ulong)right);
|
||||||
GpuUInt128 product = gpuLeft * gpuRight;
|
gpuLeft.Mul(gpuRight);
|
||||||
return (UInt128)product;
|
return (UInt128)gpuLeft;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
|||||||
Reference in new issue
Block a user