Lines Matching refs:uint8_t
208 static void SetFencepost(uint8_t *buffer) { in SetFencepost()
215 static void VerifyFencepost(uint8_t *buffer) { in VerifyFencepost()
218 uint8_t expected_value; in VerifyFencepost()
231 size_t max_test_size, void (*test_func)(uint8_t*, size_t), in RunSingleBufferAlignTest() argument
239 uint8_t *buf = new uint8_t[3*max_test_size]; in RunSingleBufferAlignTest()
241 uint8_t *buf_align; in RunSingleBufferAlignTest()
247 buf_align = reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunSingleBufferAlignTest()
263 size_t max_test_size, void (*test_func)(uint8_t*, uint8_t*, size_t), in RunSrcDstBufferAlignTest() argument
270 uint8_t* src = new uint8_t[3*max_test_size]; in RunSrcDstBufferAlignTest()
271 uint8_t* dst = new uint8_t[3*max_test_size]; in RunSrcDstBufferAlignTest()
273 uint8_t* src_align; in RunSrcDstBufferAlignTest()
274 uint8_t* dst_align; in RunSrcDstBufferAlignTest()
281 reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunSrcDstBufferAlignTest()
284 reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunSrcDstBufferAlignTest()
300 size_t max_test_size, void (*test_cmp_func)(uint8_t*, uint8_t*, size_t), in RunCmpBufferAlignTest() argument
301 void (*test_miscmp_func)(uint8_t*, uint8_t*, size_t, size_t), in RunCmpBufferAlignTest() argument
308 uint8_t* buf1 = new uint8_t[3*max_test_size]; in RunCmpBufferAlignTest()
309 uint8_t* buf2 = new uint8_t[3*max_test_size]; in RunCmpBufferAlignTest()
311 uint8_t* buf1_align; in RunCmpBufferAlignTest()
312 uint8_t* buf2_align; in RunCmpBufferAlignTest()
319 reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunCmpBufferAlignTest()
322 reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunCmpBufferAlignTest()
351 void RunSingleBufferOverreadTest(void (*test_func)(uint8_t*, size_t)) { in RunSingleBufferOverreadTest() argument
355 uint8_t* memory; in RunSingleBufferOverreadTest()
364 uint8_t* buf = &memory[pagesize-i]; in RunSingleBufferOverreadTest()
372 void RunSrcDstBufferOverreadTest(void (*test_func)(uint8_t*, uint8_t*, size_t)) { in RunSrcDstBufferOverreadTest() argument
376 uint8_t* memory; in RunSrcDstBufferOverreadTest()
384 uint8_t* dst_buffer = new uint8_t[2*pagesize]; in RunSrcDstBufferOverreadTest()
387 uint8_t* dst = &dst_buffer[i]; in RunSrcDstBufferOverreadTest()
389 uint8_t* src = &memory[pagesize-j]; in RunSrcDstBufferOverreadTest()
400 void (*test_cmp_func)(uint8_t*, uint8_t*, size_t), in RunCmpBufferOverreadTest() argument
401 void (*test_miscmp_func)(uint8_t*, uint8_t*, size_t, size_t)) { in RunCmpBufferOverreadTest() argument
406 uint8_t* memory1; in RunCmpBufferOverreadTest()
414 uint8_t* memory2; in RunCmpBufferOverreadTest()
423 uint8_t* buf1 = &memory1[pagesize-i]; in RunCmpBufferOverreadTest()
424 uint8_t* buf2 = &memory2[pagesize-i]; in RunCmpBufferOverreadTest()
437 uint8_t* buf1 = &memory1[pagesize-i]; in RunCmpBufferOverreadTest()
442 uint8_t* buf2 = &memory2[pagesize-j]; in RunCmpBufferOverreadTest()