Skip to content

Commit 6e47730

Browse files
committed
---
yaml --- r: 44147 b: refs/heads/snap-stage3 c: 393a4b4 h: refs/heads/master i: 44145: b092f77 44143: 4f6acf8 v: v3
1 parent 057f17a commit 6e47730

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: dc7e6abab78124ffdec7568afe5297eded1f1966
4+
refs/heads/snap-stage3: 393a4b41f60612f234394b58b8e3bf3261ca9566
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/bitv.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,22 +164,22 @@ impl BigBitv {
164164

165165
#[inline(always)]
166166
fn union(&mut self, b: &BigBitv, nbits: uint) -> bool {
167-
self.process(b, nbits, lor)
167+
self.process(b, nbits, |w1, w2| w1 | w2)
168168
}
169169

170170
#[inline(always)]
171171
fn intersect(&mut self, b: &BigBitv, nbits: uint) -> bool {
172-
self.process(b, nbits, land)
172+
self.process(b, nbits, |w1, w2| w1 & w2)
173173
}
174174

175175
#[inline(always)]
176176
fn become(&mut self, b: &BigBitv, nbits: uint) -> bool {
177-
self.process(b, nbits, right)
177+
self.process(b, nbits, |_, w| w)
178178
}
179179

180180
#[inline(always)]
181181
fn difference(&mut self, b: &BigBitv, nbits: uint) -> bool {
182-
self.process(b, nbits, difference)
182+
self.process(b, nbits, |w1, w2| w1 & !w2)
183183
}
184184

185185
#[inline(always)]
@@ -556,13 +556,9 @@ pub fn from_fn(len: uint, f: fn(index: uint) -> bool) -> Bitv {
556556
bitv
557557
}
558558
559-
pure fn lor(w0: uint, w1: uint) -> uint { return w0 | w1; }
560559
561-
pure fn land(w0: uint, w1: uint) -> uint { return w0 & w1; }
562560
563-
pure fn difference(w0: uint, w1: uint) -> uint { return w0 & !w1; }
564561
565-
pure fn right(_w0: uint, w1: uint) -> uint { return w1; }
566562
567563
impl ops::Index<uint,bool> for Bitv {
568564
pure fn index(&self, i: uint) -> bool {

0 commit comments

Comments
 (0)