Closed AaronKutch closed 6 years ago
Are you going to do the renaming (e.g. checked_mul_assign
to assign_wrapping_mul
) after this?
I should have checked the diff before issuing the pull request. It looks like my formatter does not like the extra spaces, and for some reason identation has been decreased by one. I'm not sure how to fix that
I think my editor is somehow using tabs I will fix this
I'm going to redo this
I have added 3 macros (that will be shared with the division algorithm I am writing), added some methods to
Digit
andDoubleDigit
for convenience, replaced theunimplemented!
section in thechecked_mul_assign
function, and added a rigorous unit test. I have not done any benchmarking yet but after I implement division I plan on doing so. I think there are some improvements that can be done by adding another macro for when no overflow is possible, and a Karatsuba routine should be made, but for now this is good.