]> git.lizzy.rs Git - rust.git/commit
Reform power_of_two methods for perf increase & semantic change to consider 0 not...
authorAaron Liblong <liblonga@physics.utoronto.ca>
Mon, 8 Dec 2014 06:03:35 +0000 (01:03 -0500)
committerAaron Liblong <liblonga@physics.utoronto.ca>
Fri, 19 Dec 2014 23:21:24 +0000 (18:21 -0500)
commitf6328b60da4c506f0f15dc0194f9b9a89aa61a79
treefa079f83c6ba1a4d2651230958c078e7c6ef1a27
parent99d6956c3bdb290b9fd539c5dc15a2b502da5e7a
Reform power_of_two methods for perf increase & semantic change to consider 0 not a power of 2.

Vec panics when attempting to reserve capacity > int::MAX (uint::MAX / 2).
src/libcollections/vec.rs
src/libcore/num/mod.rs
src/libstd/collections/hash/map.rs
src/libstd/num/mod.rs