Return scalar MulMod results and benchmark native reducers

This commit is contained in:
Marek Lemańczyk committed 2025-10-01 00:41:27 +02:00
1 parent 4bbdebc874
commit 604e91b3e3
15 files changed
+1043 -261

No files matched your search

@@ -79,8 +79,8 @@ public class GpuUInt128Tests
var a = new GpuUInt128(aVal);
var b = new GpuUInt128(bVal);
UInt128 expected = ((UInt128)aVal * bVal) % modulus;
a.MulMod(b, modulus);
((UInt128)a).Should().Be(expected);
ulong result = a.MulMod(b, modulus);
((UInt128)result).Should().Be(expected);
}
}