Lines Matching refs:NBYTES
74 #define X(NBYTES) \ argument
75 int memcpy_test_fixed_len_##NBYTES(uint8_t init) { \
76 uint8_t buf[NBYTES]; \
77 uint8_t buf2[NBYTES]; \
78 reset_buf(buf, init, NBYTES); \
79 memcpy((void *)buf2, (void *)buf, NBYTES); \
80 return fletcher_checksum(buf2, NBYTES); \
83 int memmove_test_fixed_len_##NBYTES(uint8_t init) { \
84 uint8_t buf[NBYTES + 16]; \
85 uint8_t buf2[NBYTES + 16]; \
86 reset_buf(buf, init, NBYTES + 16); \
87 reset_buf(buf2, init, NBYTES + 16); \
89 memmove((void *)(buf + 16), (void *)buf, NBYTES); \
91 memmove((void *)buf2, (void *)(buf2 + 16), NBYTES); \
92 return fletcher_checksum(buf, NBYTES + 16) + \
93 fletcher_checksum(buf2, NBYTES + 16); \
96 int memset_test_fixed_len_##NBYTES(uint8_t init) { \
97 uint8_t buf[NBYTES]; \
98 memset((void *)buf, init, NBYTES); \
99 return fletcher_checksum(buf, NBYTES); \