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

bigint: add From implementations #138

Merged
merged 2 commits into from
Dec 13, 2015
Merged

bigint: add From implementations #138

merged 2 commits into from
Dec 13, 2015

Conversation

ollie27
Copy link
Contributor

@ollie27 ollie27 commented Dec 12, 2015

From all primative unsigned ints to BigUint
From all primative ints to BigInt
From BigUint to BigInt

Closes: #117

@cuviper
Copy link
Member

cuviper commented Dec 12, 2015

I'd rather see those benchmarks as simple tests, so they're verified on all targets. Benchmarks only work on nightlies. (It's also not very interesting code performance-wise, spending most of its time in the heap allocator for the data Vec.)

Otherwise, the implementation looks great!

From all primative unsigned ints to BigUint
From all primative ints to BigInt
From BigUint to BigInt

Closes: rust-num#117
@ollie27
Copy link
Contributor Author

ollie27 commented Dec 12, 2015

I've removed the benchmarks and added some tests.

@cuviper
Copy link
Member

cuviper commented Dec 13, 2015

Well done, thanks!
@homu r+ 9c7c995

@homu
Copy link
Contributor

homu commented Dec 13, 2015

⚡ Test exempted - status

@homu homu merged commit 9c7c995 into rust-num:master Dec 13, 2015
homu added a commit that referenced this pull request Dec 13, 2015
bigint: add From implementations

From all primative unsigned ints to BigUint
From all primative ints to BigInt
From BigUint to BigInt

Closes: #117
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