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

Support full exponent range in BigFloat#**(BigInt) #13881

Merged

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Oct 11, 2023

Supports exponents larger than UInt64::MAX and negative exponents. Similar support for primitive integers will be added after #13874.

This is more or less the same implementation as Int#**(Int), except that the temporary variables are mutated in-place to reduce memory allocations.

@HertzDevil HertzDevil changed the title Implement BigFloat#**(BigInt) Support full exponent range in BigFloat#**(BigInt) Oct 11, 2023
Co-authored-by: Johannes Müller <straightshoota@gmail.com>
@straight-shoota straight-shoota added this to the 1.11.0 milestone Oct 27, 2023
@straight-shoota straight-shoota merged commit 50763f0 into crystal-lang:master Oct 29, 2023
54 of 55 checks passed
@HertzDevil HertzDevil deleted the feature/bigfloat-power-bigint branch October 30, 2023 11:27
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
)

Co-authored-by: Johannes Müller <straightshoota@gmail.com>
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