summaryrefslogtreecommitdiff
path: root/libartbase/base/bit_vector.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2024-03-11 10:25:14 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2024-03-12 13:22:47 +0000
commitc507f12bc90d8b79c56f0f10895acc71287498d2 (patch)
treecfd0a48585c686be562f80bbb39cf1020f9b0da6 /libartbase/base/bit_vector.cc
parent7b6786441045496aaf84a0f40289a62ead431672 (diff)
Remove BitVectorArray classes
They are unused after the removal of partial LSE Bug: 298176183 Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Test: m test-art-host-gtest Change-Id: If838f90ba8ed468eacb39ca3b57fbbee88fb7bc9
Diffstat (limited to 'libartbase/base/bit_vector.cc')
-rw-r--r--libartbase/base/bit_vector.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/libartbase/base/bit_vector.cc b/libartbase/base/bit_vector.cc
index d3cb652c0c..8e3d4c9bf7 100644
--- a/libartbase/base/bit_vector.cc
+++ b/libartbase/base/bit_vector.cc
@@ -376,31 +376,4 @@ Allocator* BitVector::GetAllocator() const {
return allocator_;
}
-void BaseBitVectorArray::Resize(size_t rows, size_t cols, bool clear) {
- DCHECK(IsExpandable());
- if (clear) {
- Clear();
- }
- cols = RoundUp(cols, BitVector::kWordBits);
- num_columns_ = cols;
- num_rows_ = rows;
- // Ensure size
- GetRawData().SetBit(num_rows_ * num_columns_ - 1);
- GetRawData().ClearBit(num_rows_ * num_columns_ - 1);
-}
-
-// In order to improve performance we do this in 4-byte blocks. Clang should be
-// able to optimize this to larger blocks if possible.
-void BaseBitVectorArray::UnionRows(size_t dest_row, size_t other) {
- DCHECK_LT(dest_row, num_rows_);
- DCHECK_LT(other, num_rows_);
- size_t block_words = num_columns_ / BitVector::kWordBits;
- uint32_t* dest =
- GetRawData().GetRawStorage() + ((dest_row * num_columns_) / BitVector::kWordBits);
- uint32_t* source = GetRawData().GetRawStorage() + ((other * num_columns_) / BitVector::kWordBits);
- for (uint32_t i = 0; i < block_words; ++i, ++dest, ++source) {
- *dest = (*dest) | (*source);
- }
-}
-
} // namespace art