8000 gh-94906: Support multiple steps in math.nextafter by matthiasgoergens · Pull Request #103881 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

gh-94906: Support multiple steps in math.nextafter #103881

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 23 commits into from
May 19, 2023
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
77fb4ae
pythongh-94906: Support multiple steps in math.nextafter
matthiasgoergens Apr 26, 2023
5e97978
Merge branch 'main' into gh-94906
matthiasgoergens May 2, 2023
0f2b30f
Merge remote-tracking branch 'origin/main' into gh-94906
matthiasgoergens May 17, 2023
b90e86c
Pass through NaN unchanged
matthiasgoergens May 17, 2023
accc22f
Explain that we need same endianness
matthiasgoergens May 17, 2023
8e1db39
Allow arbitrarily many steps
matthiasgoergens May 17, 2023
6873347
Fix problems
matthiasgoergens May 17, 2023
1fff8b4
Update regen-all
matthiasgoergens May 17, 2023
311f266
Make steps also available as a non-kw arg
matthiasgoergens May 17, 2023
cd70fea
Fix docs
matthiasgoergens May 17, 2023
e0421b6
Update docs
matthiasgoergens May 17, 2023
a8c83a7
Py_None instead of NULL
matthiasgoergens May 17, 2023
88c46c4
Fix typo
matthiasgoergens May 17, 2023
2232bb4
Tickle the CI/CD
matthiasgoergens May 17, 2023
a2724f6
Revert "Make steps also available as a non-kw arg"
matthiasgoergens May 17, 2023
b7b5ac6
Merge branch 'main' into gh-94906
matthiasgoergens May 17, 2023
b45f9c2
property based tests (should fail)
matthiasgoergens May 17, 2023
1f9d890
Property based tests
matthiasgoergens May 17, 2023
2153302
simplify
matthiasgoergens May 17, 2023
61c7c6e
Tickle CI/CD
matthiasgoergens May 17, 2023
04af22b
Merge branch 'main' into gh-94906
matthiasgoergens May 18, 2023
6527b77
Fix whitespace issue
mdickinson May 19, 2023
66ef3f9
Portability fix and a minor style fix
mdickinson May 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
matthiasgoergens committed May 17, 2023
commit 88c46c4807a68d8727e25c2cd7c6eeb77e7108c2
2 changes: 1 addition & 1 deletion Modules/mathmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3947,7 +3947,7 @@ math_nextafter_impl(PyObject *module, double x, double y, PyObject *steps)

// opposite signs
if (((ux.i ^ uy.i) & sign_bit)) {
// NOTE: ax + ay can never overflow, because there most significant bit
// NOTE: ax + ay can never overflow, because their most significant bit
// ain't set.
if (ax + ay <= usteps) {
return PyFloat_FromDouble(uy.f);
Expand Down
0