Skip to content

math.big: fix Karatsuba's add_in_place() function, add carry handler on exit #24541

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

tankf33der
Copy link
Contributor

@tankf33der tankf33der commented May 21, 2025

Found via pow() loop vs. gmp.
Without this patch, these two tests will be unsuccessful.
The 100M loop vs. gmp will be after another patch because numbers have already been found where Karatsuba is unsuccessful.

Copy link

Connected to Huly®: V_0.6-22908

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman
Copy link
Member

The CI failures are not related, and should be fixed on master.

@spytheman spytheman merged commit c27bc60 into vlang:master May 21, 2025
59 of 70 checks passed
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