From 2010a214ea07e1a4d17393ec93f5c4049a517a93 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 15 Nov 2021 15:33:11 +0100 Subject: vppinfra: fallback to builtin memcpy if vector code is not enabled Type: fix Fixes: 56f54af Change-Id: I678ff3622640c911eefb57a9288ef95ed859eeb9 Signed-off-by: Damjan Marion --- src/vppinfra/memcpy_x86_64.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/vppinfra/memcpy_x86_64.h') diff --git a/src/vppinfra/memcpy_x86_64.h b/src/vppinfra/memcpy_x86_64.h index 9662ab4e7ef..e206c69c997 100644 --- a/src/vppinfra/memcpy_x86_64.h +++ b/src/vppinfra/memcpy_x86_64.h @@ -597,10 +597,9 @@ clib_memcpy_x86_64 (void *restrict dst, const void *restrict src, size_t n) } return dst; #else -#error "SSE/AVX2/AVX512 must be enabled" -#endif - + __builtin_memcpy (dst, src, n); return dst; +#endif } /* clang-format off */ -- cgit 1.2.3-korg