Commit Graph

3 Commits

Author SHA1 Message Date
David Tolnay 3e47651d90
Write u128 using only two divisions 2017-09-16 13:58:02 -07:00
David Tolnay 23d280dc7a
Simplify udivmodti4 for our special case
This isn't faster, just easier to understand.
2017-09-16 11:49:36 -07:00
Henning Ottesen 1d85a0c5f9 Copy udivmodti4 from compiler-builtins
Division with remainder on u128 is badly optimized by LLVM. Copying it
into our crate allows for inlining and proper optimization.
2017-09-14 23:52:42 +02:00