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
gso: support TCP/IPv4 GSO
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
arch
/
ppc_64
/
rte_memcpy.h
diff --git
a/lib/librte_eal/common/include/arch/ppc_64/rte_memcpy.h
b/lib/librte_eal/common/include/arch/ppc_64/rte_memcpy.h
index
31daa0d
..
ca9d1dc
100644
(file)
--- a/
lib/librte_eal/common/include/arch/ppc_64/rte_memcpy.h
+++ b/
lib/librte_eal/common/include/arch/ppc_64/rte_memcpy.h
@@
-95,9
+95,10
@@
rte_mov256(uint8_t *dst, const uint8_t *src)
}
#define rte_memcpy(dst, src, n) \
}
#define rte_memcpy(dst, src, n) \
- ((__builtin_constant_p(n)) ? \
+ __extension__ ({ \
+ (__builtin_constant_p(n)) ? \
memcpy((dst), (src), (n)) : \
memcpy((dst), (src), (n)) : \
- rte_memcpy_func((dst), (src), (n)))
+ rte_memcpy_func((dst), (src), (n))
; }
)
static inline void *
rte_memcpy_func(void *dst, const void *src, size_t n)
static inline void *
rte_memcpy_func(void *dst, const void *src, size_t n)