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

+1 -1
View File
@@ -760,7 +760,7 @@ public static class UInt128Extensions
// expression tree around the shift. Mirroring the MulHigh layout lets RyuJIT
// keep the intermediate sum in registers instead of reloading the partial
// product from the stack.
ulong high = aLow.MulHigh(bLow);
ulong high = aLow.MulHighCpu(bLow);
high += aLow * bHigh;
return ((UInt128)high << 64) | low;