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

fix rem2pi for non-finite arguments #46163

Merged
merged 6 commits into from
Jul 25, 2022

Conversation

oscardssmith
Copy link
Member

@oscardssmith oscardssmith commented Jul 25, 2022

followup to #36420 that fixes Inf and -Inf as well (and I believe at slightly lower cost)

followup to https://github.com/JuliaLang/julia/pull/36420/files that fixes `Inf` and `-Inf` as well (and I believe at slightly lower cost)
@oscardssmith oscardssmith added the kind:bugfix This change fixes an existing bug label Jul 25, 2022
@oscardssmith
Copy link
Member Author

oscardssmith commented Jul 25, 2022

We also should really make better implimentations of rem2pi for Float32 and Float16. Our current methods just use the Float32 impl, which is slower than necessary.

base/math.jl Outdated Show resolved Hide resolved
Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
@oscardssmith oscardssmith added backport 1.6 Change should be backported to release-1.6 backport 1.7 backport 1.8 Change should be backported to release-1.8 labels Jul 25, 2022
@oscardssmith
Copy link
Member Author

ready to merge?

@giordano
Copy link
Contributor

Use isfinite everywhere else?

@oscardssmith
Copy link
Member Author

good point.

@fredrikekre fredrikekre merged commit 73c1eeb into master Jul 25, 2022
@fredrikekre fredrikekre deleted the oscardssmith-fix-rem2pi-nonfinite branch July 25, 2022 19:21
@giordano giordano mentioned this pull request Jul 25, 2022
KristofferC pushed a commit that referenced this pull request Aug 7, 2022
@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Aug 7, 2022
ffucci pushed a commit to ffucci/julia that referenced this pull request Aug 11, 2022
pcjentsch pushed a commit to pcjentsch/julia that referenced this pull request Aug 18, 2022
KristofferC pushed a commit that referenced this pull request Dec 21, 2022
KristofferC pushed a commit that referenced this pull request Dec 21, 2022
KristofferC pushed a commit that referenced this pull request Dec 21, 2022
KristofferC pushed a commit that referenced this pull request Dec 21, 2022
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
KristofferC pushed a commit that referenced this pull request Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.6 Change should be backported to release-1.6 kind:bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants