Evan Cheng
|
b5aabee330
|
Proper fix for the off-by-one bug in clear_unused_bits().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34328 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 21:38:15 +00:00 |
|
Reid Spencer
|
f1f007d2ff
|
Fix an off-by-one bug in computing the index of the word to clear.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34326 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 20:49:10 +00:00 |
|
Reid Spencer
|
9d1597b086
|
Make sure Capacity gets initialized too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34325 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 20:14:06 +00:00 |
|
Evan Cheng
|
852b4baf47
|
Missing a ;
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34322 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 19:29:05 +00:00 |
|
Evan Cheng
|
e01ad2d129
|
BitVector::reference operator=(const reference& rhs) is unnecessary thanks to autoconvert to bool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34320 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 19:21:44 +00:00 |
|
Evan Cheng
|
1f46998b3f
|
Remove unnecessary checks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34319 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 19:18:12 +00:00 |
|
Evan Cheng
|
638417f788
|
operator== returns false when two bitvectors have different sizes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34317 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 19:16:21 +00:00 |
|
Evan Cheng
|
c761df18ae
|
Merges two resize() variants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34316 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 19:12:39 +00:00 |
|
Evan Cheng
|
ccae61c5da
|
Clear no longer deleting the bits to avoid mallocs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34315 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 19:10:34 +00:00 |
|
Evan Cheng
|
7bf26c1d68
|
BitVector::count() bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34314 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 19:09:36 +00:00 |
|
Evan Cheng
|
334df9d83f
|
Eliminate a redundent ctor; eliminate one more potential new [0].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34313 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 19:05:25 +00:00 |
|
Evan Cheng
|
057f8e0845
|
1 -> 1L since BitWord has type unsigned long.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34312 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 19:03:23 +00:00 |
|
Evan Cheng
|
5f92ce4696
|
Eliminate new[0], just set Bits to NULL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34311 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 18:59:15 +00:00 |
|
Evan Cheng
|
c48aafe6c6
|
Inverted the condition by accident.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34309 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 18:48:41 +00:00 |
|
Evan Cheng
|
506e899490
|
Bug fixes: assignment operator forgot to copy over size; copy ctor forgot to clear unused top bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34305 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 08:15:58 +00:00 |
|
Evan Cheng
|
ad1d5c3bc5
|
Add a BitVector class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34301 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-15 05:56:11 +00:00 |
|