Commit Graph

8 Commits

Author SHA1 Message Date
Alex Crichton bde434903d Merge pull request #47 from jbcrail/fix-deprecated-range
Remove range function.
2015-01-12 11:02:46 -06:00
Joseph Crail d196c2b818 Remove range function.
For the pi benchmark, I replaced the range function with the new range
syntax.
2015-01-11 23:54:25 -05:00
Joseph Crail c42680d21e Replace deprecated int references with i32/isize.
I replaced most int refs with i32, and I used isize to hold the number
of default digits.
2015-01-11 23:51:02 -05:00
Sven Nilsen ae3bb3619c Upgrade to latest Rust
A `_0` test fails, but don’t know why
2015-01-03 19:30:05 +01:00
gifnksm a325a566c6 update to latest rustc
Now, arithmetic binary operator traits take operands by value,
but non-copyable types such as `BigUint` should not always moved out when
applying operators.

This commit implements these operators not only for bare structs also
these references.
By-value implementations are forwarded to by-reference implementations
for now. In the future, by-value implementations may be replaced with
more efficient implementations (for example, the implementation that
reuses moved buffers.)
2014-12-16 23:44:16 +09:00
gifnksm 29011d14d9 std::from_str::FromStr -> std::str::FromStr 2014-11-17 22:38:12 +09:00
gifnksm 2155e7d2ee Add numeric functions and `traits` module that provide numeric traits for generic
mathematcs.

Import numeric traits and functions that were removed from the standard library.
This also implements `AdditiveIterator` and `MultiplicativeIterator` for
`BigUint` and `BigInt`.

closes #28
2014-11-16 19:37:49 +09:00
Aaron Turon 4fa331aa41 Added shootout benchmark 2014-09-16 11:41:09 -07:00