Mod10 benchmarks added

This commit is contained in:
Marek Lemańczyk committed 2025-09-21 06:28:42 +02:00
1 parent bba78dfff7
commit 3e0102a404
2 files changed
+33 -1

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ public static class ULongExtensions
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static ulong Mod10(ulong value)
public static ulong Mod10(this ulong value)
{
ulong quotient = (ulong)(((UInt128)value * 0xCCCCCCCCCCCCCCCDUL) >> 67);
return value - quotient * 10UL;