Home | History | Annotate | Download | only in crosstest

Lines Matching refs:buf2

43 int memcpy_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length) {
45 memcpy((void *)buf2, (void *)buf, length);
46 return fletcher_checksum(buf2, length);
49 int memmove_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length) {
63 memmove((void *)buf2, (void *)buf, length);
64 sum2 = fletcher_checksum(buf2, length);
68 int memset_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length) {
70 memset((void *)buf2, init + 4, length);
71 return fletcher_checksum(buf, length) + fletcher_checksum(buf2, length);
77 uint8_t buf2[NBYTES]; \
79 memcpy((void *)buf2, (void *)buf, NBYTES); \
80 return fletcher_checksum(buf2, NBYTES); \
85 uint8_t buf2[NBYTES + 16]; \
87 reset_buf(buf2, init, NBYTES + 16); \
91 memmove((void *)buf2, (void *)(buf2 + 16), NBYTES); \
93 fletcher_checksum(buf2, NBYTES + 16); \