MCPcopy Create free account
hub / github.com/bytedance/bolt / selectOddRows

Function selectOddRows

bolt/vector/tests/EnsureWritableVectorTest.cpp:204–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 }
203}
204
205namespace {
206SelectivityVector selectOddRows(vector_size_t size) {
207 SelectivityVector oddRows(size);
208 for (vector_size_t i = 0; i < size; i += 2) {
209 oddRows.setValid(i, false);
210 }
211 oddRows.updateBounds();
212 return oddRows;
213}
214

Callers 1

TEST_FFunction · 0.85

Calls 2

setValidMethod · 0.80
updateBoundsMethod · 0.80

Tested by

no test coverage detected