Skip to content

ext/bcmath: Minor fixes to bcmul() #14564

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 3 commits into from
Jun 13, 2024

Conversation

SakiTakamachi
Copy link
Member

@SakiTakamachi SakiTakamachi commented Jun 13, 2024

Comments have been corrected, function names have been changed, and the method for calculating array size has been changed.

The original calculation method allowed for some error, which could have
increased the number of simple loops without byte tricks at the end of the
calculation when converting to bc_num.

The new method calculates the size accurately, so the number of loops does
not increase unnecessarily.
@SakiTakamachi SakiTakamachi merged commit 37488d6 into php:master Jun 13, 2024
11 checks passed
@SakiTakamachi SakiTakamachi deleted the bcmul_small_fix branch June 13, 2024 17:20
@SakiTakamachi
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants