MCPcopy Create free account
hub / github.com/apache/arrow / BenchmarkBitmapVisitUInt8And

Function BenchmarkBitmapVisitUInt8And

cpp/src/arrow/util/bit_util_benchmark.cc:172–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static void BenchmarkBitmapVisitUInt8And(benchmark::State& state) {
173 BenchmarkAndImpl(state, [](const internal::Bitmap(&bitmaps)[2], internal::Bitmap* out) {
174 int64_t i = 0;
175 internal::Bitmap::VisitWords(bitmaps, [&](std::array<uint8_t, 2> uint8s) {
176 reinterpret_cast<uint8_t*>(out->mutable_data())[i++] = uint8s[0] & uint8s[1];
177 });
178 });
179}
180
181static void BenchmarkBitmapVisitUInt64And(benchmark::State& state) {
182 BenchmarkAndImpl(state, [](const internal::Bitmap(&bitmaps)[2], internal::Bitmap* out) {

Callers

nothing calls this directly

Calls 3

BenchmarkAndImplFunction · 0.85
VisitWordsFunction · 0.85
mutable_dataMethod · 0.45

Tested by

no test coverage detected