git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use macro to declare constructor functions
[dpdk.git]
/
lib
/
librte_eal
/
common
/
arch
/
x86
/
rte_memcpy.c
diff --git
a/lib/librte_eal/common/arch/x86/rte_memcpy.c
b/lib/librte_eal/common/arch/x86/rte_memcpy.c
index
74ae702
..
174bef1
100644
(file)
--- a/
lib/librte_eal/common/arch/x86/rte_memcpy.c
+++ b/
lib/librte_eal/common/arch/x86/rte_memcpy.c
@@
-37,8
+37,7
@@
void *(*rte_memcpy_ptr)(void *dst, const void *src, size_t n) = NULL;
-static void __attribute__((constructor))
-rte_memcpy_init(void)
+RTE_INIT(rte_memcpy_init)
{
#ifdef CC_SUPPORT_AVX512F
if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F)) {