aboutsummaryrefslogtreecommitdiff
path: root/src/lib/_uint.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-08-26 16:26:51 -0700
committerGraydon Hoare <[email protected]>2010-08-26 16:27:47 -0700
commit7cfa7bdd23c1fed92a5e52f33437fbaeec4c235b (patch)
tree347a467a95c132dbe86eb0b23ce27559884ebc50 /src/lib/_uint.rs
parentAdd automatic parameter instantiation. Closes #45. (diff)
downloadrust-7cfa7bdd23c1fed92a5e52f33437fbaeec4c235b.tar.xz
rust-7cfa7bdd23c1fed92a5e52f33437fbaeec4c235b.zip
Make vreg constrs per-quad, regfence on nontrivial constrs, back out workaround to _uint, add regression test. Closes #152.
Diffstat (limited to 'src/lib/_uint.rs')
-rw-r--r--src/lib/_uint.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/_uint.rs b/src/lib/_uint.rs
index 2c2629c9..f3a6f935 100644
--- a/src/lib/_uint.rs
+++ b/src/lib/_uint.rs
@@ -28,9 +28,7 @@ fn next_power_of_two(uint n) -> uint {
let uint shift = 1u;
while (shift <= halfbits) {
tmp |= tmp >> shift;
- // FIXME (issue #152): This would be just a tad cuter if it were
- // shift <<= 1u
- shift = shift << 1u;
+ shift <<= 1u;
}
ret tmp + 1u;
}