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

<cmath>: Complete additional overloads for integers #4537

Merged
merged 12 commits into from
Apr 9, 2024

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Mar 28, 2024

Also partially implements WG21-P0533R9 for these overloads.

Unblocks 2 libcxx tests:

  • std/depr/depr.c.headers/math_h.pass.cpp
  • std/numerics/c.math/cmath.pass.cpp

Note that the problem still exists when only <math.h> is included. See DevCom-10294165.

Towards #519 and #2530. Related to DevCom-718628/DevCom-923187.

Also partially implement P0533R9 for these overloads
@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner March 28, 2024 18:45
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Mar 28, 2024
@StephanTLavavej StephanTLavavej self-assigned this Mar 28, 2024
stl/inc/cmath Outdated Show resolved Hide resolved
tests/std/tests/GH_000519_cmath_int_overloads/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/GH_000519_cmath_int_overloads/test.cpp Outdated Show resolved Hide resolved
stl/inc/cmath Outdated Show resolved Hide resolved
stl/inc/cmath Outdated Show resolved Hide resolved
tests/std/tests/GH_000519_cmath_int_overloads/test.cpp Outdated Show resolved Hide resolved
stl/inc/cmath Outdated Show resolved Hide resolved
tests/std/tests/GH_000519_cmath_int_overloads/test.cpp Outdated Show resolved Hide resolved
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit d655083 into microsoft:main Apr 9, 2024
35 checks passed
@StephanTLavavej
Copy link
Member

Thanks for delving into one of the STL's scariest headers! 🧮 👻 😻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

<cmath>: signbit() misses overloads for integer types
2 participants