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

Restore partial support for :fast rounding mode #666

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

OlivierHnt
Copy link
Member

@OlivierHnt OlivierHnt commented Jun 2, 2024

This PR essentially uncomments the old code we had for +, -, *, /, inv, sqrt with :fast rounding.
Since Julia should be compliant with the IEEE specifications, these functions can only return a result within one ulp of the correct one.
Maybe we should find a reference in the Julia repo where this is mentioned?

Closes #665

Maybe this also addresses #592.

cc-@dpsanders

@dpsanders
Copy link
Member

LGTM, thanks!

Are there tests for this?

@dpsanders
Copy link
Member

I don't think this closes #592 , since CRlibm is used for sin, exp etc.

@OlivierHnt
Copy link
Member Author

So CORE-MATH would be faster than CRlibm?

Concerning the tests: I am not sure if there ever were any. I could add some simple ones.

@OlivierHnt OlivierHnt merged commit c951192 into JuliaIntervals:master Jun 3, 2024
16 checks passed
@OlivierHnt OlivierHnt deleted the rounding branch June 3, 2024 14:21
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.

Reinstate fast rounding with prevfloat and nextfloat
2 participants