Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add karatsuba to big ints #3581

Merged
merged 1 commit into from
Nov 4, 2019
Merged

Conversation

bhansconnect
Copy link
Contributor

Just trying to make Zig's big ints faster. Made Zig's big int multiplication match Rust's. Does not yet have Toom-3.

The main way this was tested was by calculating large factorials and comparing it to other languages. This would be a decent fuzz target if zig ever gets fuzzing. Preferably lower threshold to use karatsuba if fuzzing.

@andrewrk andrewrk requested a review from tiehuis November 3, 2019 05:48
@andrewrk andrewrk merged commit 52207f2 into ziglang:master Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants