Rescope loop variables for divisor workflows
This commit is contained in:
1 parent
b76fdccc1e
commit
ace3fcbf34
4 files changed
+906
-834
No files matched your search
@@ -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)]
|
||||
|
||||
Reference in new issue
Block a user