Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 17.11.5
[deb_dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
arch
/
x86
/
rte_memcpy.h
diff --git
a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h
b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h
index
b9785e8
..
3f4a9db
100644
(file)
--- a/
lib/librte_eal/common/include/arch/x86/rte_memcpy.h
+++ b/
lib/librte_eal/common/include/arch/x86/rte_memcpy.h
@@
-44,6
+44,8
@@
#include <stdint.h>
#include <string.h>
#include <rte_vect.h>
#include <stdint.h>
#include <string.h>
#include <rte_vect.h>
+#include <rte_common.h>
+#include <rte_config.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-64,8
+66,8
@@
extern "C" {
* @return
* Pointer to the destination data.
*/
* @return
* Pointer to the destination data.
*/
-static inline void *
-rte_memcpy(void *dst, const void *src, size_t n)
__attribute__((always_inline))
;
+static
__rte_always_
inline void *
+rte_memcpy(void *dst, const void *src, size_t n);
#ifdef RTE_MACHINE_CPUFLAG_AVX512F
#ifdef RTE_MACHINE_CPUFLAG_AVX512F
@@
-601,7
+603,7
@@
rte_mov256(uint8_t *dst, const uint8_t *src)
*/
#define MOVEUNALIGNED_LEFT47_IMM(dst, src, len, offset) \
__extension__ ({ \
*/
#define MOVEUNALIGNED_LEFT47_IMM(dst, src, len, offset) \
__extension__ ({ \
-
in
t tmp; \
+
size_
t tmp; \
while (len >= 128 + 16 - offset) { \
xmm0 = _mm_loadu_si128((const __m128i *)((const uint8_t *)src - offset + 0 * 16)); \
len -= 128; \
while (len >= 128 + 16 - offset) { \
xmm0 = _mm_loadu_si128((const __m128i *)((const uint8_t *)src - offset + 0 * 16)); \
len -= 128; \