New benchmarks added. Tiny optimization

This commit is contained in:
mlemanczyk committed 2025-10-12 21:17:21 +02:00
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);