Split MulHigh extensions into CPU and GPU variants

This commit is contained in:
Marek Lemańczyk committed 2025-10-26 22:42:21 +01:00
1 parent 3d458fc6da
commit 0e1212aa1c
7 files changed
+32 -16

No files matched your search

@@ -240,7 +240,7 @@ public class MulMod64Benchmarks
ulong left = a % modulus;
ulong right = b % modulus;
ulong low = left * right;
ulong high = left.MulHigh(right);
ulong high = left.MulHighCpu(right);
UInt128 product = ((UInt128)high << 64) | low;
return (ulong)(product % modulus);
}