Lines Matching defs:uBase
59 static int tstHandleTableTest1(uint32_t uBase, uint32_t cMax, uint32_t cDelta, uint32_t cUnitsPerDot, bool fCallbacks, uint32_t fFlags)
68 RTPrintf(", %#x, %#x,,)...\n", uBase, cMax);
71 rc = RTHandleTableCreateEx(&hHT, fFlags, uBase, cMax,
82 uint32_t i = uBase;
129 for (i = uBase; i < c; i++)
154 if (fCallbacks && cRetainerCalls != c - uBase)
156 RTPrintf("tstHandleTable: FAILURE (%d) - cRetainerCalls=%#x expected %#x!\n", __LINE__, cRetainerCalls, c - uBase);
163 for (i = uBase; i < c; i++)
195 if (fCallbacks && cRetainerCalls != c - uBase)
197 RTPrintf("tstHandleTable: FAILURE (%d) - cRetainerCalls=%#x expected %#x!\n", __LINE__, cRetainerCalls, c - uBase);
203 for (i = uBase; i < c * 2; i++)
206 uint32_t hExpect = ((i - uBase) % (c - uBase)) + uBase;
224 if (i >= cDelta + uBase)
229 uint32_t hLookup = ((j - uBase) % (c - uBase)) + uBase;
252 uint32_t hFree = ((i - uBase - cDelta) % (c - uBase)) + uBase;
371 static int tstHandleTableTest2(uint32_t uBase, uint32_t cMax, uint32_t cThreads)
376 RTPrintf("tstHandleTable: TESTING %u threads: uBase=%u, cMax=%u\n", cThreads, uBase, cMax);
378 int rc = RTHandleTableCreateEx(&hHT, RTHANDLETABLE_FLAGS_LOCKED | RTHANDLETABLE_FLAGS_CONTEXT, uBase, cMax, NULL, NULL);
460 uint32_t uBase = 0;
472 uBase = Value.u32;
501 if (cThreads || cMax || uBase)
506 tstHandleTableTest1(uBase, cMax, 128, cMax / 32, false, RTHANDLETABLE_FLAGS_CONTEXT | RTHANDLETABLE_FLAGS_LOCKED);
508 tstHandleTableTest2(uBase, cMax, 128);