Skip to content

Conversation

kennytm
Copy link
Member

@kennytm kennytm commented Oct 19, 2018

Successful merges:

oli-obk and others added 17 commits October 14, 2018 17:35
This patch adds a `copysign` function to the float primitive types.
It is an exceptionally useful function for writing efficient numeric
code, as it often avoids branches, is auto-vectorizable, and there
are efficient intrinsics for most platforms.

I think this might work as-is, as the relevant `copysign` intrinsic
is already used internally for the implementation of `signum`. It's
possible that an implementation might be needed in japaric/libm for
portability across all platforms, in which case I'll do that also.

Part of the work towards rust-lang#55107
I improved the f32 version and made a copy-paste error for f64.
Added a #[must_use] annotation on copysign, per review feedback.
@kennytm
Copy link
Member Author

kennytm commented Oct 19, 2018

@bors r+ p=9

@bors
Copy link
Collaborator

bors commented Oct 19, 2018

📌 Commit 3813db1154808a373f7a9957e4d6314dde9bcd69 has been approved by kennytm

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 19, 2018
@bors
Copy link
Collaborator

bors commented Oct 19, 2018

⌛ Testing commit 3813db1154808a373f7a9957e4d6314dde9bcd69 with merge 539c9983dbc841dff5850e5442eb66cc94ee83ea...

@bors
Copy link
Collaborator

bors commented Oct 19, 2018

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 19, 2018
Cleanup resolve

- improve/remove allocations
- `truncate` instead of `pop`ping in a loop
- improve common patterns
Don't warn about parentheses on `match (return)`

Fixes rust-lang#55164.
Add a `copysign` function to f32 and f64

This patch adds a `copysign` function to the float primitive types. It is an exceptionally useful function for writing efficient numeric code, as it often avoids branches, is auto-vectorizable, and there are efficient intrinsics for most platforms.

I think this might work as-is, as the relevant `copysign` intrinsic is already used internally for the implementation of `signum`. It's possible that an implementation might be needed in japaric/libm for portability across all platforms, in which case I'll do that also.

Part of the work towards rust-lang#55107
…lexcrichton

Stabilize slice::chunks_exact(), chunks_exact_mut(), rchunks(), rchunks_mut(), rchunks_exact(), rchunks_exact_mut()

Fixes rust-lang#47115, rust-lang#55177
…ounds, r=nikomatsakis

[NLL] Propagate bounds from generators

This used to only be done for closures.
@kennytm kennytm changed the title Rollup of 9 pull requests Rollup of 7 pull requests Oct 19, 2018
@kennytm
Copy link
Member Author

kennytm commented Oct 19, 2018

@bors r+

Removed #55007 (causing failure above)
Removed #55040 (already testing)
Removed #55179 (r-'ed)
Added #55013.

@bors
Copy link
Collaborator

bors commented Oct 19, 2018

📌 Commit 0724efd has been approved by kennytm

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 19, 2018
@bors
Copy link
Collaborator

bors commented Oct 19, 2018

⌛ Testing commit 0724efd with merge 74ff7dc...

bors added a commit that referenced this pull request Oct 19, 2018
Rollup of 7 pull requests

Successful merges:

 - #54300 (Updated RELEASES.md for 1.30.0)
 - #55013 ([NLL] Propagate bounds from generators)
 - #55071 (Fix ICE and report a human readable error)
 - #55144 (Cleanup resolve)
 - #55166 (Don't warn about parentheses on `match (return)`)
 - #55169 (Add a `copysign` function to f32 and f64)
 - #55178 (Stabilize slice::chunks_exact(), chunks_exact_mut(), rchunks(), rchunks_mut(), rchunks_exact(), rchunks_exact_mut())
@bors
Copy link
Collaborator

bors commented Oct 19, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: kennytm
Pushing 74ff7dc to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants