summary refs log tree commit diff
path: root/src/libstd/num/uint.rs
AgeCommit message (Collapse)AuthorLines
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-01Move int and uint overflow tests into macrosBrendan Zabarauskas-8/+0
2014-02-01Remove free-standing div functions in std::uintBrendan Zabarauskas-60/+0
2014-02-01Make next_power_of_two generic for unsigned integersBrendan Zabarauskas-65/+0
Also rename `next_power_of_two_opt` to `checked_next_power_of_two`.
2014-01-30Remove Times traitBrendan Zabarauskas-31/+0
`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.
2014-01-25Uppercase numeric constantsChris Wong-5/+5
The following are renamed: * `min_value` => `MIN` * `max_value` => `MAX` * `bits` => `BITS` * `bytes` => `BYTES` Fixes #10010.
2014-01-16Merge Bitwise and BitCount traits and remove from prelude, along with BoundedBrendan Zabarauskas-1/+1
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-4/+11
2013-11-26libstd: Fix Win32 and other bustage.Patrick Walton-2/+2
2013-11-26test: Remove non-procedure uses of `do` from compiletest, libstd tests,Patrick Walton-1/+1
compile-fail tests, run-fail tests, and run-pass tests.
2013-11-19libstd: Change all uses of `&fn(A)->B` over to `|A|->B` in libstdPatrick Walton-1/+1
2013-10-17std: Move size/align functions to std::mem. #2240Brian Anderson-3/+3
2013-09-16std::num: Add uint::next_power_of_two_optblake2-ppc-1/+11
Like next_power_of_two, but returns None on overflow.
2013-09-08Moved checked trait impls out of std::numBrendan Zabarauskas-0/+69
This follows the same pattern as the other numeric trait impls, and reduces the clutter in std::num.
2013-08-29Remove the iter module.Jason Fager-3/+3
Moves the Times trait to num while the question of whether it should exist at all gets hashed out as a completely separate question.
2013-08-06std: Remove uint::iterate, replaced by `range`blake2-ppc-24/+0
2013-08-01std: Change `Times` trait to use `do` instead of `for`blake2-ppc-7/+6
Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead.
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-2/+2
2013-05-24Remove usage of the #[merge] hack with int modulesAlex Crichton-0/+195