Home
last modified time | relevance | path

Searched refs:NUM (Results 1 – 4 of 4) sorted by relevance

/oneTBB/test/tbbmalloc/
H A Dtest_malloc_regression.cpp122 const int NUM = 4; in TestAlignedMsize() local
123 char *p[NUM]; in TestAlignedMsize()
124 size_t objSizes[NUM]; in TestAlignedMsize()
130 for (int i=0; i<NUM; i++) { in TestAlignedMsize()
135 for (int i=0; i<NUM; i++) { in TestAlignedMsize()
140 for (int i=0; i<NUM; i++) { in TestAlignedMsize()
145 for (int i=0; i<NUM; i++) { in TestAlignedMsize()
150 for (int i=0; i<NUM; i++) { in TestAlignedMsize()
156 for (int i=0; i<NUM; i++) in TestAlignedMsize()
H A Dtest_malloc_used_by_lib.cpp34 static const int NUM = 20; in callDll() local
35 void *ptrs[NUM]; in callDll()
37 for (int i=0; i<NUM; i++) { in callDll()
41 for (int i=0; i<NUM; i++) in callDll()
/oneTBB/src/tbbmalloc/
H A Dtbbmalloc_internal.h177 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> {
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()
[all …]
H A Dshared_utils.h57 template <size_t NUM>
58 struct Log2 { static const int value = 1 + Log2<(NUM >> 1)>::value; };