Split MulHigh extensions into CPU and GPU variants
This commit is contained in:
1 parent
3d458fc6da
commit
0e1212aa1c
7 files changed
+32
-16
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user