Skip to content

[libc++] Fix return type of ilogb(double) #19755

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 1 commit into from
Aug 11, 2025

Conversation

steffenlarsen
Copy link
Contributor

This commit addresses a seemingly unintentional return type of the ilogb overload taking a double. Currently it returns double, while it is supposed to return int.

The return types seems to be covered by libcxx/test/std/numerics/c.math/cmath.pass.cpp, but the issue would only show up if we tested with a libc that doesn't provide the ilogb(double) overload, which we don't.

This commit addresses a seemingly unintentional return type of the ilogb
overload taking a double. Currently it returns double, while it is
supposed to return int.

The return types seems to be covered by libcxx/test/std/numerics/c.math/cmath.pass.cpp,
but the issue would only show up if we tested with a libc that doesn't
provide the ilogb(double) overload, which we don't.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen
Copy link
Contributor Author

Early cherry-pick of llvm/llvm-project@09cc8ea

@bader
Copy link
Contributor

bader commented Aug 11, 2025

Early cherry-pick of llvm/llvm-project@09cc8ea

Early? The commit was merged in July. @jsji, don't we merge community changes once a week?

@jsji
Copy link
Contributor

jsji commented Aug 11, 2025

Early cherry-pick of llvm/llvm-project@09cc8ea

Early? The commit was merged in July. @jsji, don't we merge community changes once a week?

No, we reduced the pulldown freq now to align with our internal branches. Approximately once every 2-3 weeks.

@bader bader merged commit e8c8555 into intel:sycl Aug 11, 2025
27 checks passed
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.

3 participants