Skip to content

float types: move copysign, abs, signum to libcore#131304

Merged
bors merged 5 commits intorust-lang:masterfrom
RalfJung:float-core
Nov 14, 2024
Merged

float types: move copysign, abs, signum to libcore#131304
bors merged 5 commits intorust-lang:masterfrom
RalfJung:float-core

Conversation

@RalfJung
Copy link
Member

@RalfJung RalfJung commented Oct 5, 2024

These operations are explicitly specified to act "bitwise", i.e. they just act on the sign bit and do not even quiet signaling NaNs. We also list them as "non-arithmetic operations", and all the other non-arithmetic operations are in libcore. There's no reason to expect them to require any sort of runtime support, and from these experiments it seems like LLVM indeed compiles them in a way that does not require any sort of runtime support.

Nominating for @rust-lang/libs-api since this change takes immediate effect on stable.

Part of #50145.

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

Labels

disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.