MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / test

Method test

src/common/classes/sparse_bitmap.h:158–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 bool test(T value)
159 {
160 if (singular)
161 {
162 fb_assert(tree.isEmpty());
163 return (value == singular_value);
164 }
165
166 const T val_aligned = value & ~(T) (BUNCH_BITS - 1);
167 if (tree.isPositioned(val_aligned) || tree.locate(val_aligned))
168 {
169 const BUNCH_T bit_mask = BUNCH_ONE << (value - val_aligned);
170 return tree.current().bits & bit_mask;
171 }
172 return false;
173 }
174
175 static bool test(SparseBitmap* bitmap, T value)
176 {

Callers 2

bit_andMethod · 0.45
testBitmapFunction · 0.45

Calls 4

isEmptyMethod · 0.45
isPositionedMethod · 0.45
locateMethod · 0.45
currentMethod · 0.45

Tested by 1

testBitmapFunction · 0.36