| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2014-01-07 | extratest: Fix all leaked trait imports | Alex Crichton | -0/+2 | |
| 2014-01-08 | Renamed Option::map_default and mutate_default to map_or and mutate_or_set | Marvin Löbel | -1/+1 | |
| 2013-12-30 | Implement Ratio:from_float() | Volker Mische | -1/+60 | |
| The Ratio::from_float() converts a float (f32 and f64) into a Ratio<BigInt>. Closes #9838 | ||||
| 2013-12-08 | Remove dead codes | Kiet Tran | -2/+1 | |
| 2013-11-26 | test: Remove all remaining non-procedure uses of `do`. | Patrick Walton | -4/+12 | |
| 2013-11-26 | librustuv: Remove all non-`proc` uses of `do` from `libextra` and | Patrick Walton | -45/+46 | |
| `librustuv`. | ||||
| 2013-11-26 | Removed unneccessary `_iter` suffixes from various APIs | Marvin Löbel | -2/+2 | |
| 2013-11-17 | extra: handle an edge case in BigUint.to_str(). | Huon Wilson | -1/+6 | |
| If any of the digits was one past the maximum (e.g. 10**9 for base 10), then this wasn't detected correctly and so the length of the digit was one more than expected, causing a very large allocation. Fixes #10522. Fixes #10288. | ||||
| 2013-10-24 | extra: Add getter methods to extra::rational::Ratio | gifnksm | -0/+66 | |
| After merging 0ada7c7, user code have not been able to access to `Ratio`'s numerator and denominator fields. In some algorithms, it is needed to get an rational number's numerator or denominator, but keeping these fields private is necessary for guaranteeing that `Ratio` numbers are irreducible. So, I added the getter methods `numer()` and `denom()`. As a bonus, this commit adds utility methods relating to the ratio-integer conversion. | ||||
| 2013-10-23 | Removed unnecessary comments and white spaces as suggested | reedlepee | -2/+2 | |
| 2013-10-23 | Removed Unnecessary comments and white spaces #4386 | reedlepee | -4/+0 | |
| 2013-10-23 | Making fields in std and extra : private #4386 | reedlepee | -4/+8 | |
| 2013-10-22 | Drop the '2' suffix from logging macros | Alex Crichton | -10/+10 | |
| Who doesn't like a massive renaming? | ||||
| 2013-10-09 | option: rewrite the API to use composition | Daniel Micay | -3/+3 | |
| 2013-10-05 | extra: fix BigInt on 32bit machines | Erick Tryzelaar | -127/+139 | |
| 2013-10-05 | extra: Don't truncate {u64,i64} when converting to BigInts | Erick Tryzelaar | -19/+121 | |
| 2013-10-02 | extra: Add ToBigInt and ToBigUint traits | Erick Tryzelaar | -0/+90 | |
| 2013-10-02 | std: Swap {To,From}Primitive to use the 64bit as the unimplemented version | Erick Tryzelaar | -24/+24 | |
| One downside with this current implementation is that since BigInt's default is now 64 bit, we can convert larger BigInt's to a primitive, however the current implementation on 32 bit architectures does not take advantage of this fact. | ||||
| 2013-10-02 | std: Replace num::IntConvertible with {To,From}Primitive | Erick Tryzelaar | -214/+215 | |
| 2013-10-02 | auto merge of #9665 : alexcrichton/rust/snapshot, r=brson | bors | -1/+1 | |
| Uses the new snapshots to kill the old `loop` and introduce the new `continue`. | ||||
| 2013-10-01 | Migrate users of 'loop' to 'continue' | Alex Crichton | -1/+1 | |
| Closes #9467 | ||||
| 2013-10-01 | remove the `float` type | Daniel Micay | -31/+30 | |
| It is simply defined as `f64` across every platform right now. A use case hasn't been presented for a `float` type defined as the highest precision floating point type implemented in hardware on the platform. Performance-wise, using the smallest precision correct for the use case greatly saves on cache space and allows for fitting more numbers into SSE/AVX registers. If there was a use case, this could be implemented as simply a type alias or a struct thanks to `#[cfg(...)]`. Closes #6592 The mailing list thread, for reference: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004632.html | ||||
| 2013-09-30 | extra: Remove usage of fmt! | Alex Crichton | -16/+16 | |
| 2013-09-26 | bigint: backticks for code in documentation | kud1ing | -35/+35 | |
| 2013-09-23 | std: merge rand::{Rng,RngUtil} with default methods. | Huon Wilson | -1/+1 | |
| Also, documentation & general clean-up: - remove `gen_char_from`: better served by `sample` or `choose`. - `gen_bytes` generalised to `gen_vec`. - `gen_int_range`/`gen_uint_range` merged into `gen_integer_range` and made to be properly uniformly distributed. Fixes #8644. Minor adjustments to other functions. | ||||
| 2013-09-18 | Remove and replace cond! Closes #9282. | Jimmy Zelinskie | -2/+2 | |
| 2013-09-17 | auto merge of #9133 : dcrewi/rust/bigint-random-range, r=huonw | bors | -2/+140 | |
| 2013-09-17 | Generate random big integers within a range | David Creswick | -2/+140 | |
| Thanks to @huonw for feedback | ||||
| 2013-09-12 | std: Rename {Option,Result}::chain{,_err}* to {and_then,or_else} | Erick Tryzelaar | -4/+4 | |
| 2013-09-12 | std: Add Option.{and,and_then,or,or_else} | Erick Tryzelaar | -2/+2 | |
| 2013-09-11 | auto merge of #9014 : dcrewi/rust/convert-between-bigints, r=anasazi | bors | -42/+130 | |
| 2013-09-11 | auto merge of #9007 : dcrewi/rust/random-bigints, r=huonw | bors | -0/+64 | |
| 2013-09-09 | auto merge of #9083 : dcrewi/rust/biguint-bit-ops, r=brson | bors | -0/+79 | |
| 2013-09-09 | Implement bitwise operations on BigUint | David Creswick | -0/+79 | |
| 2013-09-09 | Merge RandBigUint and RandBigInt into single trait | David Creswick | -21/+17 | |
| 2013-09-09 | Convert between BigInts, BigUints, ints, and uints | David Creswick | -53/+100 | |
| Previously, conversion to ints, uints, and BigUints clamped the value within the range of that datatype. With this commit, conversion overflows fail the task. To handle overflows gracefully, use the new to_*_opt() methods. | ||||
| 2013-09-09 | rename `std::iterator` to `std::iter` | Daniel Micay | -2/+2 | |
| The trait will keep the `Iterator` naming, but a more concise module name makes using the free functions less verbose. The module will define iterables in addition to iterators, as it deals with iteration in general. | ||||
| 2013-09-06 | Incorporate feedback from huonw | David Creswick | -7/+22 | |
| - use identifiers with underscores to avoid unused variable warning - implement on R: Rng instead of on R: RngUtil - bugfix: zero BigInts were being generated twice as often as any other number - test that gen_biguint(0) always returns zero | ||||
| 2013-09-05 | Convert between BigInts and BigUints | David Creswick | -0/+41 | |
| 2013-09-05 | test the correct function (oops) | David Creswick | -2/+2 | |
| 2013-09-05 | Generate random BigUints and BigInts | David Creswick | -0/+53 | |
| 2013-08-30 | std: Implement .rposition() on double-ended iterators with known size | blake2-ppc | -1/+1 | |
| This is a generalization of the vector .rposition() method, to all double-ended iterators that have the ExactSizeHint trait. This resolves the slight asymmetry around `position` and `rposition` * position from front is `vec.iter().position()` * position from the back was, `vec.rposition()` is now `vec.iter().rposition()` Additionally, other indexed sequences (only `extra::ringbuf` I think), will have the same method available once it implements ExactSizeHint. | ||||
| 2013-08-27 | librustc: Fix merge fallout | Patrick Walton | -7/+8 | |
| 2013-08-27 | librustc: Ensure that type parameters are in the right positions in paths. | Patrick Walton | -28/+62 | |
| This removes the stacking of type parameters that occurs when invoking trait methods, and fixes all places in the standard library that were relying on it. It is somewhat awkward in places; I think we'll probably want something like the `Foo::<for T>::new()` syntax. | ||||
| 2013-08-26 | bigint: fix wrong benchmark fn name | gifnksm | -1/+1 | |
| 2013-08-26 | bigint: Add benchmarks | gifnksm | -0/+44 | |
| 2013-08-25 | bigint: un-ignore test_shr | gifnksm | -73/+68 | |
| 2013-08-25 | bigint: inlining small functions | gifnksm | -97/+92 | |
| 2013-08-25 | bigint: remove unnecessary method implements | gifnksm | -42/+0 | |
| 2013-08-25 | bigint: cfg(target_arch = ...) => cfg(target_word_size = ...) | gifnksm | -25/+11 | |
