Skip to content
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

Implement i128 <-> float conversion functions #161

Merged
merged 16 commits into from
May 10, 2017
Merged

Conversation

est31
Copy link
Member

@est31 est31 commented May 6, 2017

Implements {u,i}128 <-> float conversion functions.

@est31
Copy link
Member Author

est31 commented May 6, 2017

Okay, I've implemented tests locally, will push once this is merged japaric/cast.rs#13 and a new version of cast.rs is pushed to crates.io

@japaric
Copy link
Member

japaric commented May 6, 2017

Awesome, @est31. Thanks!

@homunkulus r+

@est31
Copy link
Member Author

est31 commented May 7, 2017

Okay, with this PR applied, everything should work now: japaric/cast.rs#14

@est31
Copy link
Member Author

est31 commented May 7, 2017

re-r? @japaric

@japaric
Copy link
Member

japaric commented May 7, 2017

@homunkulus r+

@japaric
Copy link
Member

japaric commented May 7, 2017

whoops, wrong bot

@bors r+

@bors
Copy link
Contributor

bors commented May 7, 2017

📌 Commit e574d8b has been approved by japaric

@bors
Copy link
Contributor

bors commented May 7, 2017

⌛ Testing commit e574d8b with merge f0ed088...

bors added a commit that referenced this pull request May 7, 2017
Implement i128 <-> float conversion functions

Implements {u,i}128 <-> float conversion functions.
@bors
Copy link
Contributor

bors commented May 7, 2017

💔 Test failed - status-appveyor

@est31 est31 force-pushed the i128 branch 2 times, most recently from 2abbc3c to 667b97d Compare May 7, 2017 23:08
Its possible that the generated f64 is different from the expected one
by one bit. This is legal when both values are equally close to the i128/u128.
Previously, the tests failed on some platforms due to it.
@est31
Copy link
Member Author

est31 commented May 8, 2017

re-r? @japaric

@japaric
Copy link
Member

japaric commented May 8, 2017

@bors r+

@bors
Copy link
Contributor

bors commented May 8, 2017

📌 Commit 673a6f9 has been approved by japaric

@bors
Copy link
Contributor

bors commented May 8, 2017

⌛ Testing commit 673a6f9 with merge 6da7ce4...

bors added a commit that referenced this pull request May 8, 2017
Implement i128 <-> float conversion functions

Implements {u,i}128 <-> float conversion functions.
@bors
Copy link
Contributor

bors commented May 8, 2017

💔 Test failed - status-travis

@est31
Copy link
Member Author

est31 commented May 8, 2017

About the thumb failure, I'm not sure whether I'm the cause of it, or whether its a spurious issue.

About the mips failure, I can reproduce it locally. Will investigate tomorrow.

@est31
Copy link
Member Author

est31 commented May 8, 2017

Note that the mips failure is spurious, as sometimes I can reproduce, sometimes I can't (for every try i delete the target/ dir).

As for the thumb failure, I have tried to reproduce it but got failures earlier on (sth like error: couldn't walk the sysroot and caused by: IO error for operation on /rust/lib/rustlib/src: No such file or directory (os error 2)).

@japaric
Copy link
Member

japaric commented May 10, 2017

@homunkulus r+

@japaric
Copy link
Member

japaric commented May 10, 2017

@bors r+

@bors
Copy link
Contributor

bors commented May 10, 2017

📌 Commit 258fead has been approved by japaric

@bors
Copy link
Contributor

bors commented May 10, 2017

⌛ Testing commit 258fead with merge f3ace11...

bors added a commit that referenced this pull request May 10, 2017
Implement i128 <-> float conversion functions

Implements {u,i}128 <-> float conversion functions.
@bors
Copy link
Contributor

bors commented May 10, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: japaric
Pushing f3ace11 to master...

@bors bors merged commit 258fead into rust-lang:master May 10, 2017
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