| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Simple sanity test of memcpy, memmove, and memset intrinsics. | 2 * Simple sanity test of memcpy, memmove, and memset intrinsics. |
| 3 * (fixed length buffers, variable length buffers, etc.). | 3 * (fixed length buffers, variable length buffers, etc.). |
| 4 * There is no include guard since this will be included multiple times, | 4 * There is no include guard since this will be included multiple times, |
| 5 * under different namespaces. | 5 * under different namespaces. |
| 6 */ | 6 */ |
| 7 #include "xdefs.h" | 7 #include "xdefs.h" |
| 8 | 8 |
| 9 #include "mem_intrin.def" |
| 10 |
| 9 int memcpy_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length); | 11 int memcpy_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length); |
| 10 int memmove_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length); | 12 int memmove_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length); |
| 11 int memset_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length); | 13 int memset_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length); |
| 12 | 14 |
| 13 int memcpy_test_fixed_len(uint8_t init); | 15 #define X(NBYTES) \ |
| 14 int memmove_test_fixed_len(uint8_t init); | 16 int memcpy_test_fixed_len_##NBYTES(uint8_t init); \ |
| 15 int memset_test_fixed_len(uint8_t init); | 17 int memmove_test_fixed_len_##NBYTES(uint8_t init); \ |
| 18 int memset_test_fixed_len_##NBYTES(uint8_t init); |
| 19 MEMINTRIN_SIZE_TABLE |
| 20 #undef X |
| OLD | NEW |