| 26 | namespace impala { |
| 27 | |
| 28 | void CreateRandomBitmap(Bitmap* bitmap) { |
| 29 | for (int64_t i = 0; i < bitmap->num_bits(); ++i) { |
| 30 | bitmap->Set(i, rand() % 2 == 0); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // Returns true if all the bits in the bitmap are equal to 'value'. |
| 35 | bool CheckAll(const Bitmap& bitmap, const bool value) { |