This patchset dynamically selects functions at run-time based on CPU flags that current machine supports. This patchset modifies mempcy, memcpy perf test and x86 EFD, using function pointers and bind them at constructor time.
Xiaoyun Li (3): eal/x86: run-time dispatch over memcpy app/test: run-time dispatch over memcpy perf test efd: run-time dispatch over x86 EFD functions .../common/include/arch/x86/rte_memcpy.h | 305 ++++++++++++--------- lib/librte_efd/rte_efd_x86.h | 35 ++- mk/machine/native/rte.vars.mk | 2 + test/test/test_memcpy_perf.c | 36 ++- 4 files changed, 236 insertions(+), 142 deletions(-) -- 2.7.4