Skip to content

Avoid inlining floor into rem_pio2 #982

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
Jul 27, 2025

Conversation

quaternic
Copy link
Contributor

@quaternic quaternic commented Jul 20, 2025

Possible workaround for #976 (comment)

Inline assembly in the body of a function currently causes the compiler to consider that function possibly unwinding, even if said asm originated from inlining an extern "C" function. This patch wraps the problematic callsite with #[inline(never)].

@folkertdev
Copy link
Contributor

This passes the test suite (just needs a formatting fix), and with this change the floor/ceil assembly versions also pass the test suite as expected.

@quaternic quaternic force-pushed the rem-pio2-avoid-floor branch from dc83b57 to 4fecc36 Compare July 26, 2025 21:27
@quaternic quaternic changed the title Avoid using floor in rem_pio2 Avoid inlining floor into rem_pio2 Jul 26, 2025
@tgross35
Copy link
Contributor

Clippy noise fixed in #995

@quaternic quaternic force-pushed the rem-pio2-avoid-floor branch from 4fecc36 to 7a44a13 Compare July 26, 2025 23:26
@quaternic quaternic marked this pull request as ready for review July 26, 2025 23:36
@quaternic quaternic force-pushed the rem-pio2-avoid-floor branch from 7a44a13 to 8ea1de8 Compare July 27, 2025 01:49
@tgross35 tgross35 merged commit c4966f9 into rust-lang:master Jul 27, 2025
38 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