Skip to content

Commit 8c853c3

Browse files
committed
---
yaml --- r: 47077 b: refs/heads/try c: 393a4b4 h: refs/heads/master i: 47075: d2909b8 v: v3
1 parent 0e4db94 commit 8c853c3

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5-
refs/heads/try: dc7e6abab78124ffdec7568afe5297eded1f1966
5+
refs/heads/try: 393a4b41f60612f234394b58b8e3bf3261ca9566
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)