Lines Matching refs:size_t
62 static const size_t g_single_aligns_len = sizeof(g_single_aligns)/sizeof(int[2]);
184 static const size_t g_double_aligns_len = sizeof(g_double_aligns)/sizeof(int[4]);
186 static size_t SetIncrement(size_t len) { in SetIncrement()
234 static int MprotectHeap(void* addr, size_t len, int prot) { in MprotectHeap()
239 size_t max_test_size, void (*test_func)(uint8_t*, size_t), in RunSingleBufferAlignTest() argument
240 size_t (*set_incr)(size_t)) { in RunSingleBufferAlignTest() argument
250 for (size_t i = 0; i < g_single_aligns_len; i++) { in RunSingleBufferAlignTest()
251 size_t incr = 1; in RunSingleBufferAlignTest()
252 for (size_t len = 0; len <= max_test_size; len += incr) { in RunSingleBufferAlignTest()
271 size_t max_test_size, void (*test_func)(uint8_t*, uint8_t*, size_t), in RunSrcDstBufferAlignTest() argument
272 size_t (*set_incr)(size_t)) { in RunSrcDstBufferAlignTest() argument
283 for (size_t i = 0; i < g_double_aligns_len; i++) { in RunSrcDstBufferAlignTest()
284 size_t incr = 1; in RunSrcDstBufferAlignTest()
285 for (size_t len = 0; len <= max_test_size; len += incr) { in RunSrcDstBufferAlignTest()
308 size_t max_test_size, void (*test_cmp_func)(uint8_t*, uint8_t*, size_t), in RunCmpBufferAlignTest() argument
309 void (*test_miscmp_func)(uint8_t*, uint8_t*, size_t, size_t), in RunCmpBufferAlignTest()
310 size_t (*set_incr)(size_t)) { in RunCmpBufferAlignTest() argument
321 for (size_t i = 0; i < g_double_aligns_len; i++) { in RunCmpBufferAlignTest()
322 size_t incr = 1; in RunCmpBufferAlignTest()
323 for (size_t len = 0; len <= max_test_size; len += incr) { in RunCmpBufferAlignTest()
339 for (size_t j = 0; j < 32; j++) { in RunCmpBufferAlignTest()
348 for (size_t len2 = len+1; len2 < len+32; len2++) { in RunCmpBufferAlignTest()
359 void RunSingleBufferOverreadTest(void (*test_func)(uint8_t*, size_t)) { in RunSingleBufferOverreadTest() argument
362 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in RunSingleBufferOverreadTest()
371 for (size_t i = 0; i < pagesize; i++) { in RunSingleBufferOverreadTest()
380 void RunSrcDstBufferOverreadTest(void (*test_func)(uint8_t*, uint8_t*, size_t)) { in RunSrcDstBufferOverreadTest() argument
383 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in RunSrcDstBufferOverreadTest()
394 for (size_t i = 0; i < 16; i++) { in RunSrcDstBufferOverreadTest()
396 for (size_t j = 0; j < pagesize; j++) { in RunSrcDstBufferOverreadTest()
408 void (*test_cmp_func)(uint8_t*, uint8_t*, size_t), in RunCmpBufferOverreadTest() argument
409 void (*test_miscmp_func)(uint8_t*, uint8_t*, size_t, size_t)) { in RunCmpBufferOverreadTest()
413 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in RunCmpBufferOverreadTest()
430 for (size_t i = 0; i < pagesize; i++) { in RunCmpBufferOverreadTest()
438 size_t miscmp_len; in RunCmpBufferOverreadTest()
444 for (size_t i = 1; i < miscmp_len; i++) { in RunCmpBufferOverreadTest()
446 for (size_t j = 1; j < miscmp_len; j++) { in RunCmpBufferOverreadTest()