Skip to content

Generalize stats from f64 to the Float trait #13822

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 2 commits into from
May 6, 2014
Merged

Generalize stats from f64 to the Float trait #13822

merged 2 commits into from
May 6, 2014

Conversation

EdorianDark
Copy link
Contributor

New attempt to generalize stats, after #12606.
Since #12355 did not get merged, i want go get first get my change done and the try to fix sum.

@@ -185,7 +184,8 @@ impl<'a> Stats for &'a [f64] {
// `lo`. Together `hi+lo` are exactly equal to `x+y`.
let hi = x + y;
let lo = y - (hi - x);
if lo != 0f64 {
let zero: T = Zero::zero();
if lo != zero {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if !lo.is_zero() {

@EdorianDark
Copy link
Contributor Author

Are there other problems?

bors added a commit that referenced this pull request May 6, 2014
New attempt to generalize stats, after #12606.
Since #12355 did not get merged, i want go get first get my change done and the try to fix sum.
@bors bors closed this May 6, 2014
@bors bors merged commit a8da4f7 into rust-lang:master May 6, 2014
arcnmx pushed a commit to arcnmx/rust that referenced this pull request Jan 9, 2023
internal: Pass `FamousDefs` around in inlay hints

Bind after at go brrrrr
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