Lines Matching refs:len
186 static size_t SetIncrement(size_t len) { in SetIncrement() argument
187 if (len >= 4096) { in SetIncrement()
189 } else if (len >= 1024) { in SetIncrement()
234 static int MprotectHeap(void* addr, size_t len, int prot) { in MprotectHeap() argument
235 return mprotect(untag_address(addr), len, prot); in MprotectHeap()
252 for (size_t len = 0; len <= max_test_size; len += incr) { in RunSingleBufferAlignTest() local
253 incr = set_incr(len); in RunSingleBufferAlignTest()
259 SetFencepost(&buf_align[len]); in RunSingleBufferAlignTest()
261 test_func(buf_align, len); in RunSingleBufferAlignTest()
264 VerifyFencepost(&buf_align[len]); in RunSingleBufferAlignTest()
285 for (size_t len = 0; len <= max_test_size; len += incr) { in RunSrcDstBufferAlignTest() local
286 incr = set_incr(len); in RunSrcDstBufferAlignTest()
295 SetFencepost(&dst_align[len]); in RunSrcDstBufferAlignTest()
297 test_func(src_align, dst_align, len); in RunSrcDstBufferAlignTest()
300 VerifyFencepost(&dst_align[len]); in RunSrcDstBufferAlignTest()
323 for (size_t len = 0; len <= max_test_size; len += incr) { in RunCmpBufferAlignTest() local
324 incr = set_incr(len); in RunCmpBufferAlignTest()
334 memset(buf1_align+len, 0, 32); in RunCmpBufferAlignTest()
335 memset(buf2_align+len, 0, 32); in RunCmpBufferAlignTest()
336 test_cmp_func(buf1_align, buf2_align, len); in RunCmpBufferAlignTest()
340 buf1_align[len+j] = j; in RunCmpBufferAlignTest()
341 buf2_align[len+j] = j+1; in RunCmpBufferAlignTest()
343 test_cmp_func(buf1_align, buf2_align, len); in RunCmpBufferAlignTest()
345 if (len > 0) { in RunCmpBufferAlignTest()
348 for (size_t len2 = len+1; len2 < len+32; len2++) { in RunCmpBufferAlignTest()
349 test_miscmp_func(buf1_align, buf2_align, len, len2); in RunCmpBufferAlignTest()
350 test_miscmp_func(buf1_align, buf2_align, len2, len); in RunCmpBufferAlignTest()