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
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using BenchmarkDotNet.Attributes;
|
||||
using BenchmarkDotNet.Jobs;
|
||||
using PerfectNumbers.Core;
|
||||
@@ -27,6 +28,7 @@ public class MutableUInt128MultiplyAddBenchmarks
|
||||
return ((UInt128)high << 64) | low;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private static void MultiplyAdd(ref MutableUInt128 source, ulong multiplier, ulong addend)
|
||||
{
|
||||
source.Mul(multiplier);
|
||||
|
||||
Reference in new issue
Block a user