]> git.lizzy.rs Git - rust.git/commit
auto merge of #16961 : huonw/rust/bitv-twiddle, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 4 Sep 2014 01:11:04 +0000 (01:11 +0000)
committerbors <bors@rust-lang.org>
Thu, 4 Sep 2014 01:11:04 +0000 (01:11 +0000)
commitd59d97cbec6807166bc237d6f3f9bd1eeb5288d7
tree4f7d59c5e80c4ec2fb1fd58d1eecf7f366b4b554
parenta4d257b1500e8853d093f8ba38dc9561ad242f71
parent5c819186edb77bd49ccaf8fb61dbc277a05f3aea
auto merge of #16961 : huonw/rust/bitv-twiddle, r=alexcrichton

bitv: add larger tests, better benchmarks & remove dead code.

There were no tests for iteration etc. with more than 5 elements,
i.e. not even going beyond a single word. This situation is rectified.

Also, the only benchmarks for `set` were with a constant bit value,
which was not indicative of every situation, due to inlining & branch
removal. This adds a benchmark at the other end of the spectrum: random
input.