Lines Matching refs:uint8_t
209 static void SetFencepost(uint8_t *buffer) { in SetFencepost()
216 static void VerifyFencepost(uint8_t *buffer) { in VerifyFencepost()
219 uint8_t expected_value; in VerifyFencepost()
239 size_t max_test_size, void (*test_func)(uint8_t*, size_t), in RunSingleBufferAlignTest() argument
247 uint8_t *buf = new uint8_t[3*max_test_size]; in RunSingleBufferAlignTest()
249 uint8_t *buf_align; in RunSingleBufferAlignTest()
255 buf_align = reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunSingleBufferAlignTest()
271 size_t max_test_size, void (*test_func)(uint8_t*, uint8_t*, size_t), in RunSrcDstBufferAlignTest() argument
278 uint8_t* src = new uint8_t[3*max_test_size]; in RunSrcDstBufferAlignTest()
279 uint8_t* dst = new uint8_t[3*max_test_size]; in RunSrcDstBufferAlignTest()
281 uint8_t* src_align; in RunSrcDstBufferAlignTest()
282 uint8_t* dst_align; in RunSrcDstBufferAlignTest()
289 reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunSrcDstBufferAlignTest()
292 reinterpret_cast<uint8_t*>(GetAlignedPtr( 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() argument
316 uint8_t* buf1 = new uint8_t[3*max_test_size]; in RunCmpBufferAlignTest()
317 uint8_t* buf2 = new uint8_t[3*max_test_size]; in RunCmpBufferAlignTest()
319 uint8_t* buf1_align; in RunCmpBufferAlignTest()
320 uint8_t* buf2_align; in RunCmpBufferAlignTest()
327 reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunCmpBufferAlignTest()
330 reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunCmpBufferAlignTest()
359 void RunSingleBufferOverreadTest(void (*test_func)(uint8_t*, size_t)) { in RunSingleBufferOverreadTest() argument
363 uint8_t* memory; in RunSingleBufferOverreadTest()
372 uint8_t* buf = &memory[pagesize-i]; in RunSingleBufferOverreadTest()
380 void RunSrcDstBufferOverreadTest(void (*test_func)(uint8_t*, uint8_t*, size_t)) { in RunSrcDstBufferOverreadTest() argument
384 uint8_t* memory; in RunSrcDstBufferOverreadTest()
392 uint8_t* dst_buffer = new uint8_t[2*pagesize]; in RunSrcDstBufferOverreadTest()
395 uint8_t* dst = &dst_buffer[i]; in RunSrcDstBufferOverreadTest()
397 uint8_t* src = &memory[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() argument
414 uint8_t* memory1; in RunCmpBufferOverreadTest()
422 uint8_t* memory2; in RunCmpBufferOverreadTest()
431 uint8_t* buf1 = &memory1[pagesize-i]; in RunCmpBufferOverreadTest()
432 uint8_t* buf2 = &memory2[pagesize-i]; in RunCmpBufferOverreadTest()
445 uint8_t* buf1 = &memory1[pagesize-i]; in RunCmpBufferOverreadTest()
450 uint8_t* buf2 = &memory2[pagesize-j]; in RunCmpBufferOverreadTest()