Rescope loop variables for divisor workflows

This commit is contained in:
Marek Lemańczyk committed 2025-09-22 15:11:44 +02:00
1 parent b76fdccc1e
commit ace3fcbf34
4 files changed
+906 -834

No files matched your search

+1 -2
View File
@@ -35,8 +35,7 @@ public static class UIntExtensions
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static uint Mod10(this uint value)
{
uint quotient = (uint)(((ulong)value * 0xCCCCCCCDUL) >> 35);
return value - quotient * 10U;
return value - (uint)(((ulong)value * 0xCCCCCCCDUL) >> 35) * 10U;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]