about summary refs log tree commit diff
path: root/src/libcoretest/num/dec2flt
AgeCommit message (Collapse)AuthorLines
2017-04-03Move libXtest into libX/testsStjepan Glavina-351/+0
This change moves: 1. `libcoretest` into `libcore/tests` 2. `libcollectionstest` into `libcollections/tests` This is a follow-up to #39561.
2017-02-04Extract libcore benchmarks to a separate folderSon-57/+0
2016-07-03std: Stabilize APIs for the 1.11.0 releaseAlex Crichton-4/+19
Although the set of APIs being stabilized this release is relatively small, the trains keep going! Listed below are the APIs in the standard library which have either transitioned from unstable to stable or those from unstable to deprecated. Stable * `BTreeMap::{append, split_off}` * `BTreeSet::{append, split_off}` * `Cell::get_mut` * `RefCell::get_mut` * `BinaryHeap::append` * `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past libstd stabilizations * `Iterator::sum` * `Iterator::product` Deprecated * `{f32, f64}::next_after` * `{f32, f64}::integer_decode` * `{f32, f64}::ldexp` * `{f32, f64}::frexp` * `num::One` * `num::Zero` Added APIs (all unstable) * `iter::Sum` * `iter::Product` * `iter::Step` - a few methods were added to accomodate deprecation of One/Zero Removed APIs * `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is unstable Closes #27739 Closes #27752 Closes #32526 Closes #33444 Closes #34152 cc #34529 (new tracking issue)
2016-02-04Enable unit tests for literals that overflow. I have no idea why this ↵Robin Kruppe-7/+5
condition was ever added.
2016-02-04Prevent the immediate panic uncovered by #31109 and add a test.Robin Kruppe-0/+11
The code there still triggers an ICE, but for different reasons (const eval unwraps the parse result).
2016-01-04Make float parsing "." return ErrToby Scrace-1/+2
This makes both of the following return Err: ".".parse::<f32>() ".".parse::<f64>() This is a [breaking-change], which the libs team have classified as a bug fix.
2015-10-14Reject "+" and "-" when parsing floats.Robin Kruppe-0/+12
Fixes #29042
2015-10-08typos: fix a grabbag of typos all over the placeCristi Cobzarenco-1/+1
2015-09-20Reorganize core::num internalsRobin Kruppe-3/+3
Move private bignum module to core::num, because it is not only used in flt2dec. Extract private 80-bit soft-float into new core::num module for the same reason.
2015-08-17core: Shuffle around float parsingAlex Crichton-26/+25
Stop using stability to hide the implementation details of ParseFloatError and instead move the error type into the `dec2flt` module. Also move the implementation blocks of `FromStr for f{32,64}` into `dec2flt` directly.
2015-08-12Mention that the fast path is broken without SSE.Robin Kruppe-0/+7
2015-08-08Accurate decimal-to-float parsing routines.Robin Kruppe-0/+365
This commit primarily adds implementations of the algorithms from William Clinger's paper "How to Read Floating Point Numbers Accurately". It also includes a lot of infrastructure necessary for those algorithms, and some unit tests. Since these algorithms reject a few (extreme) inputs that were previously accepted, this could be seen as a [breaking-change]