#define rte_memcpy(dst, src, n) \
((__builtin_constant_p(n)) ? \
memcpy((dst), (src), (n)) : \
rte_memcpy_func((dst), (src), (n)))
Why call memcpy when n is constant variable?
Can i change them to the follow codes?
#define rte_memcpy(dst, src, n) \
{ \
int num = n; \
rte_memcpy_func((dst), (src), (num))) \
}
--
Regards,
Haifeng