Skip to content

Add generic conversion from a narrower to a wider FP type #229

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
Feb 8, 2018

Conversation

paoloteti
Copy link
Contributor

Add extend module to implement conversion from a narrower to a wider floating-point type.

This implementation is only intended to support widening operations.
Module to convert a narrower floating-point will be added in the future.

Add `extend` module to implement conversion from a narrower to a wider
floating-point type.

This implementation is only intended to support *widening* operations.
Module to convert a *narrower* floating-point will be added in the future.
@alexcrichton
Copy link
Member

@bors: r+

awesome, thanks!

@bors
Copy link
Contributor

bors commented Feb 8, 2018

📌 Commit 45f924e has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Feb 8, 2018

⌛ Testing commit 45f924e with merge 2801c99...

bors added a commit that referenced this pull request Feb 8, 2018
Add generic conversion from a narrower to a wider FP type

Add `extend` module to implement conversion from a narrower to a wider floating-point type.

This implementation is only intended to support *widening* operations.
Module to convert a *narrower* floating-point will be added in the future.
@bors
Copy link
Contributor

bors commented Feb 8, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 2801c99 to master...

@bors bors merged commit 45f924e into rust-lang:master Feb 8, 2018
@paoloteti paoloteti deleted the extend branch February 9, 2018 07:18
tgross35 pushed a commit to tgross35/compiler-builtins that referenced this pull request Feb 23, 2025
Looks like the implementation was not ported correctly. Some negations
were forgotten in a certain branch. Here is the original code in musl
that has the negations:

https://github.com/bpowers/musl/blob/94cb2ec2a0ffcb47d24dbf7a30e462505396cf54/src/math/sincosf.c#L66-L67

Resolves rust-lang#228
tgross35 pushed a commit that referenced this pull request Apr 18, 2025
Looks like the implementation was not ported correctly. Some negations
were forgotten in a certain branch. Here is the original code in musl
that has the negations:

https://github.com/bpowers/musl/blob/94cb2ec2a0ffcb47d24dbf7a30e462505396cf54/src/math/sincosf.c#L66-L67

Resolves rust-lang/libm#228
@github-actions github-actions bot mentioned this pull request Apr 19, 2025
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