Lines Matching refs:NUM
177 template<unsigned NUM>
179 static const unsigned SZ = (NUM-1)/(CHAR_BIT*sizeof(uintptr_t))+1;
186 MALLOC_ASSERT(idx<NUM, ASSERT_TEXT); in set()
218 template<unsigned NUM>
219 class BitMaskMin : public BitMaskBasic<NUM> {
221 void set(size_t idx, bool val) { BitMaskBasic<NUM>::set(idx, val); } in set()
223 return BitMaskBasic<NUM>::getMinTrue(startIdx); in getMinTrue()
227 template<unsigned NUM>
228 class BitMaskMax : public BitMaskBasic<NUM> {
231 BitMaskBasic<NUM>::set(NUM - 1 - idx, val); in set()
234 int p = BitMaskBasic<NUM>::getMinTrue(NUM-startIdx-1); in getMaxTrue()
235 return -1==p? -1 : (int)NUM - 1 - p; in getMaxTrue()