MCPcopy Create free account
hub / github.com/F-Stack/f-stack / func_test

Function func_test

dpdk/app/test/test_memcpy.c:102–119  ·  view source on GitHub ↗

* Check functionality for various buffer sizes and data offsets/alignments. */

Source from the content-addressed store, hash-verified

100 * Check functionality for various buffer sizes and data offsets/alignments.
101 */
102static int
103func_test(void)
104{
105 unsigned int off_src, off_dst, i;
106 int ret;
107
108 for (off_src = 0; off_src < ALIGNMENT_UNIT; off_src++) {
109 for (off_dst = 0; off_dst < ALIGNMENT_UNIT; off_dst++) {
110 for (i = 0; i < RTE_DIM(buf_sizes); i++) {
111 ret = test_single_memcpy(off_src, off_dst,
112 buf_sizes[i]);
113 if (ret != 0)
114 return -1;
115 }
116 }
117 }
118 return 0;
119}
120
121static int
122test_memcpy(void)

Callers 1

test_memcpyFunction · 0.85

Calls 1

test_single_memcpyFunction · 0.85

Tested by

no test coverage detected