Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
9196ed7
)
vppinfra: fix non-vector build on x86_64
64/36164/2
author
Damjan Marion
<damarion@cisco.com>
Wed, 18 May 2022 13:27:27 +0000
(15:27 +0200)
committer
Florin Coras
<florin.coras@gmail.com>
Wed, 18 May 2022 20:10:16 +0000
(20:10 +0000)
Type: fix
Fixes:
56f54af
Change-Id: Id03185953eb16da3a3276d2f21d64499784bbf17
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vppinfra/string.h
patch
|
blob
|
history
diff --git
a/src/vppinfra/string.h
b/src/vppinfra/string.h
index
0d8b1e6
..
38d3bab
100644
(file)
--- a/
src/vppinfra/string.h
+++ b/
src/vppinfra/string.h
@@
-47,7
+47,9
@@
#include <vppinfra/clib.h> /* for CLIB_LINUX_KERNEL */
#include <vppinfra/vector.h>
#include <vppinfra/error_bootstrap.h>
+#ifdef __SSE4_2__
#include <vppinfra/memcpy_x86_64.h>
+#endif
#ifdef CLIB_LINUX_KERNEL
#include <linux/string.h>
@@
-77,7
+79,7
@@
clib_memcpy_fast (void *restrict dst, const void *restrict src, size_t n)
"behaviour");
#if defined(__COVERITY__)
return memcpy (dst, src, n);
-#elif defined(__
x86_64
__)
+#elif defined(__
SSE4_2
__)
clib_memcpy_x86_64 (dst, src, n);
return dst;
#else