File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9a539a5dd18d3e8cf9dfab59f793d2e4df58464c
2
+ refs/heads/master: ce3224652f22c5c81e81da3eb31de56683c9d8ec
Original file line number Diff line number Diff line change @@ -9,18 +9,9 @@ import std._vec;
9
9
10
10
state type t = rec ( vec[ mutable uint] storage, uint nbits) ;
11
11
12
- // FIXME: we should bind std.max_int
13
- fn is32bit ( ) -> bool {
14
- let uint n = 0xffffffff u;
15
- ret ( n + 1 u) == 0 u;
16
- }
17
-
12
+ // FIXME: this should be a constant once they work
18
13
fn uint_bits ( ) -> uint {
19
- if ( is32bit ( ) ) {
20
- ret 31 u;
21
- } else {
22
- ret 63 u;
23
- }
14
+ ret 32 u + ( ( 1 u << 32 u) >> 27 u) - 1 u;
24
15
}
25
16
26
17
// FIXME: this should be state
@@ -36,8 +27,6 @@ fn create(uint nbits, bool init) -> t {
36
27
nbits = nbits) ;
37
28
}
38
29
39
-
40
-
41
30
// FIXME: this should be state
42
31
fn process( fn ( uint , uint ) -> uint op, t v0 , t v1 ) -> bool {
43
32
auto len = _vec. len [ mutable uint] ( v1. storage ) ;
You can’t perform that action at this time.
0 commit comments