New benchmarks added. Tiny optimization
This commit is contained in:
1 parent
8c0320d837
commit
fcfb6f6434
3 files changed
+81
-2
No files matched your search
@@ -67,7 +67,7 @@ public struct MutableUInt128
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void Add(in MutableUInt128 value)
|
||||
public void Add(MutableUInt128 value)
|
||||
{
|
||||
ulong temp = Low + value.Low;
|
||||
Low = temp;
|
||||
@@ -89,7 +89,7 @@ public struct MutableUInt128
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void Sub(in MutableUInt128 value)
|
||||
public void Sub(MutableUInt128 value)
|
||||
{
|
||||
ulong low = Low;
|
||||
ulong result = low - value.Low;
|
||||
|
||||
Reference in new issue
Block a user