summaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-05-18 15:27:27 +0200
committerFlorin Coras <florin.coras@gmail.com>2022-05-18 20:10:16 +0000
commit01e593e8e598efc447c5809ea477e34a88a86648 (patch)
tree253d6b5946b2eff73c50469ece8052b9b344c2fe /src/vppinfra
parent9196ed798a49c0e89252c00770fde4db3e90c81d (diff)
vppinfra: fix non-vector build on x86_64
Type: fix Fixes: 56f54af Change-Id: Id03185953eb16da3a3276d2f21d64499784bbf17 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vppinfra/string.h b/src/vppinfra/string.h
index 0d8b1e6cb25..38d3baba9da 100644
--- 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