summary refs log tree commit diff
path: root/src/libstd/num/f64.rs
AgeCommit message (Collapse)AuthorLines
2013-12-27std: uniform modules titles for docLuca Bruno-1/+1
This commit uniforms the short title of modules provided by libstd, in order to make their roles more explicit when glancing at the index. Signed-off-by: Luca Bruno <lucab@debian.org>
2013-12-23std: Fix all code examplesAlex Crichton-1/+2
2013-12-08Remove dead codesKiet Tran-7/+7
2013-12-04Decode a float into integersVolker Mische-0/+29
The `integer_decode()` function decodes a float (f32/f64) into integers containing the mantissa, exponent and sign. It's needed for `rationalize()` implementation of #9838. The code got ported from ABCL [1]. [1] http://abcl.org/trac/browser/trunk/abcl/src/org/armedbear/lisp/FloatFunctions.java?rev=14465#L94
2013-11-29Removed a few macro-expanding-to-module workaroundsMarvin Löbel-20/+13
Also documented a few issues
2013-11-11Remove #[fixed_stack_segment] and #[rust_stack]Alex Crichton-1/+1
These two attributes are no longer useful now that Rust has decided to leave segmented stacks behind. It is assumed that the rust task's stack is always large enough to make an FFI call (due to the stack being very large). There's always the case of stack overflow, however, to consider. This does not change the behavior of stack overflow in Rust. This is still normally triggered by the __morestack function and aborts the whole process. C stack overflow will continue to corrupt the stack, however (as it did before this commit as well). The future improvement of a guard page at the end of every rust stack is still unimplemented and is intended to be the mechanism through which we attempt to detect C stack overflow. Closes #8822 Closes #10155
2013-10-28Capitalize statics in f32 and f64 modsZiad Hatahet-76/+74
Fixes #10077
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-1/+1
Who doesn't like a massive renaming?
2013-10-17std: Move size/align functions to std::mem. #2240Brian Anderson-3/+3
2013-10-05std: add Primitive.is_signedErick Tryzelaar-0/+3
2013-10-02auto merge of #9638 : ↵bors-0/+1
pnkfelix/rust/fsk-issue7526-attempt-to-catch-nonuc-statics-in-match-patterns, r=alexcrichton r? anyone Address scariest part of #7526 by adding a new more specific lint (that is set to warn by default, rather than allow).
2013-09-30std: Remove usage of fmt!Alex Crichton-2/+2
2013-10-01Add new lint: non_uppercase_pattern_statics, for #7526.Felix S. Klock II-0/+1
This tries to warn about code like: ```rust match (0,0) { (0, aha) => { ... }, ... } ``` where `aha` is actually a static constant, not a binding.
2013-09-25rustdoc: Change all code-blocks with a scriptAlex Crichton-2/+2
find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g' find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g' find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
2013-09-21auto merge of #9369 : sebcrozet/rust/f64_inline, r=thestingerbors-0/+1
This was, somehow, missed by #8332.
2013-09-21std: add missing #[inline] annotation to the f64 neg method.Sébastien Crozet-0/+1
This was, somehow, missed by #8332.
2013-09-19Rename the NaN and is_NaN methods to lowercase.Chris Morgan-42/+42
This is for consistency in naming conventions. - ``std::num::Float::NaN()`` is changed to ``nan()``; - ``std::num::Float.is_NaN()`` is changed to ``is_nan()``; and - ``std::num::strconv::NumStrConv::NaN()`` is changed to ``nan()``. Fixes #9319.
2013-09-19auto merge of #9291 : jzelinskie/rust/remove-cond, r=alexcrichtonbors-18/+18
This is my first contribution, so please point out anything that I may have missed. I consulted IRC and settled on `match () { ... }` for most of the replacements.
2013-09-18Remove and replace cond! Closes #9282.Jimmy Zelinskie-18/+18
2013-09-18std: Remove {float,f64,f32}::from_str in favor of from_strblake2-ppc-60/+52
Like issue #9209, remove float::{from_str, from_str_radix} in favor of the two corresponding traits. The same for modules f64 and f32. New usage is from_str::<float>("1.2e34")
2013-09-12std: Add a bunch of Default implsErick Tryzelaar-0/+6
2013-08-30remove several 'ne' methodsEric Martin-2/+0
2013-08-28Disabled failing parts of abs_sub() and frexp() unit tests on Windows.Vadim Chugunov-0/+7
2013-08-27librustc: Ensure that type parameters are in the right positions in paths.Patrick Walton-66/+120
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-20rm obsolete float to_str_radix free functionsDaniel Micay-24/+17
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-1/+1
2013-08-07std: add missing #[inline] annotation to the f64 arithmetic trait impls.Huon Wilson-0/+4
2013-07-08 Replaces the free-standing functions in f32, &c.Jens Nockert-48/+15
The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note: If you were using a function that corresponds to an operator, use the operator instead.
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-0/+1
2013-06-30Specialize to_str_common for floats/integers in strconvAlex Crichton-11/+11
This allows the integral paths to avoid allocations on the heap Closes #4424, #4423
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-132/+132
2013-06-11std: convert pow, hypot, atan2, log to take arguments by reference.Huon Wilson-4/+4
2013-05-30Require documentation by default for libstdAlex Crichton-0/+2
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-1/+6
2013-05-29Changed to a more efficient implementation.Matthijs Hofstra-8/+2
2013-05-29Replaced calls to external fmin/fmax by a Rust implementation.Matthijs Hofstra-2/+15
2013-05-27syntax highlight code examples in docstringsDaniel Micay-1/+1
2013-05-23cleanup warnings from libstdErick Tryzelaar-1/+0
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+1295
This only changes the directory names; it does not change the "real" metadata names.