Skip to content

intrinsics: unify rint, roundeven, nearbyint in a single round_ties_even intrinsic#136543

Merged
bors merged 3 commits into
rust-lang:masterfrom
RalfJung:round-ties-even
Feb 24, 2025
Merged

intrinsics: unify rint, roundeven, nearbyint in a single round_ties_even intrinsic#136543
bors merged 3 commits into
rust-lang:masterfrom
RalfJung:round-ties-even

Conversation

@RalfJung

@RalfJung RalfJung commented Feb 4, 2025

Copy link
Copy Markdown
Member

LLVM has three intrinsics here that all do the same thing (when used in the default FP environment). There's no reason Rust needs to copy that historically-grown mess -- let's just have one intrinsic and leave it up to the LLVM backend to decide how to lower that.

Suggested by @hanna-kruppe in #136459; Cc @tgross35

try-job: test-various

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants