about summary refs log tree commit diff
path: root/src/libstd/num/i32.rs
AgeCommit message (Collapse)AuthorLines
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-1/+1
[breaking-change]
2014-05-22libstd: Remove `~str` from all `libstd` modules except `fmt` and `str`.Patrick Walton-0/+1
2014-05-15std: Delegate some integer formatting to core::fmtAlex Crichton-1/+0
In an attempt to phase out the std::num::strconv module's string formatting functionality, this commit reimplements some provided methods for formatting integers on top of format!() instead of the custom (and slower) implementation inside of num::strconv. Primarily, this deprecates int_to_str_bytes_common
2014-05-08Handle breakage after libcore splitKevin Ballard-2/+1
API Changes: - &[T] and ~[T] no longer support the addition operator (+)
2014-05-07core: Inherit the specific numeric modulesAlex Crichton-55/+6
This implements all traits inside of core::num for all the primitive types, removing all the functionality from libstd. The std modules reexport all of the necessary items from the core modules.
2014-04-15Use the unsigned integer types for bitwise intrinsics.Huon Wilson-3/+3
Exposing ctpop, ctlz, cttz and bswap as taking signed i8/i16/... is just exposing the internal LLVM names pointlessly (LLVM doesn't have "signed integers" or "unsigned integers", it just has sized integer types with (un)signed *operations*). These operations are semantically working with raw bytes, which the unsigned types model better.
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-1/+1
Closes #2569
2014-02-24Remove std::from_str::FromStr from the preludeBrendan Zabarauskas-0/+1
2014-02-23std: Move intrinsics to std::intrinsics.Brian Anderson-1/+1
Issue #1457
2014-02-17Rename Bitwise::population_count to Bitwise::count_ones and add ↵Brendan Zabarauskas-4/+6
Bitwise::count_zeros These are inspired by the [functions in the Julia standard library](http://docs.julialang.org/en/release-0.2/stdlib/base/#Base.count_ones).
2014-01-16Merge Bitwise and BitCount traits and remove from prelude, along with BoundedBrendan Zabarauskas-2/+2
One less trait in std::num, and three less exported in the prelude.
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-11-29Removed module macro workaround for signed and unsigned integersMarvin Löbel-2/+8
2013-09-08Moved checked trait impls out of std::numBrendan Zabarauskas-1/+32
This follows the same pattern as the other numeric trait impls, and reduces the clutter in std::num.
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-3/+3
2013-05-24Remove usage of the #[merge] hack with int modulesAlex Crichton-0/+32