This compilation unit will be linked in to the main binary, so this should override glibc memcpy
| 82 | |
| 83 | // This compilation unit will be linked in to the main binary, so this should override glibc memcpy |
| 84 | __attribute__((visibility("default"))) void* memcpy(void* __restrict __dest, const void* __restrict __src, size_t __n) { |
| 85 | // folly_memcpy is faster for small copies, but rte seems to win out in most other circumstances |
| 86 | return rte_memcpy(__dest, __src, __n); |
| 87 | } |
| 88 | #else |
| 89 | void* rte_memcpy_noinline(void* __restrict __dest, const void* __restrict __src, size_t __n) { |
| 90 | return memcpy(__dest, __src, __n); |