Closed dtolnay closed 7 years ago
Wow, that’s fast. This is probably worth submitting as patch to std.
We sould alos look into what happens with i64/u64 on x86, can we speed up too.
The compiler-builtins
copyright notice probably doesn’t apply anymore, you can probably remove it.
@dtolnay: are you planning to submit this upstream?
@varkor I am not planning to do it but it is being tracked in https://github.com/rust-lang/rust/issues/44583.
@henninglive this one is a little faster than your implementation from #10. Basically it decomposes N into (N / 10^38 % 10) and (N / 10^19 % 10^19) and (N % 10^19).
Unoptimized
PR #10
This one