blob: 70f02ae7394da5292736e3fc44daf410239d5185 [file] [log] [blame]
Jan Voung3bd9f1a2014-06-18 10:50:57 -07001/*
2 * Simple sanity test of memcpy, memmove, and memset intrinsics.
3 * (fixed length buffers, variable length buffers, etc.).
4 * There is no include guard since this will be included multiple times,
5 * under different namespaces.
6 */
7
Jan Voung140bb0d2014-07-14 11:51:44 -07008int memcpy_test(uint8_t *buf, uint8_t *buf2, uint8_t init, size_t length);
9int memmove_test(uint8_t *buf, uint8_t *buf2, uint8_t init, size_t length);
10int memset_test(uint8_t *buf, uint8_t *buf2, uint8_t init, size_t length);
Jan Voung3bd9f1a2014-06-18 10:50:57 -070011
12int memcpy_test_fixed_len(uint8_t init);
13int memmove_test_fixed_len(uint8_t init);
14int memset_test_fixed_len(uint8_t init);