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

redirect muladd for BigFloat to fma #49401

Merged
merged 1 commit into from
Apr 19, 2023
Merged

redirect muladd for BigFloat to fma #49401

merged 1 commit into from
Apr 19, 2023

Conversation

nsajko
Copy link
Contributor

@nsajko nsajko commented Apr 18, 2023

A fused multiply-add is available in MPFR as mpfr_fma and Base.fma already uses it. Apart from being fused (more accurate), it's also more performant than the generic muladd and allocates one less temporary BigFloat.

A fused multiply-add is available in MPFR as `mpfr_fma` and `Base.fma`
already uses it. Apart from being fused (more accurate), it's also more
performant than the generic `muladd` and allocates one less temporary
`BigFloat`.
@oscardssmith oscardssmith added performance Must go faster bignums BigInt and BigFloat labels Apr 18, 2023
@oscardssmith oscardssmith added the merge me PR is reviewed. Merge when all tests are passing label Apr 18, 2023
Copy link
Member

@StefanKarpinski StefanKarpinski left a comment

Choose a reason for hiding this comment

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

Good find!

@ViralBShah ViralBShah merged commit 2eea585 into JuliaLang:master Apr 19, 2023
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bignums BigInt and BigFloat performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants