diff options
author | Damjan Marion <damarion@cisco.com> | 2021-11-15 15:33:11 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-11-23 15:24:14 +0000 |
commit | 2010a214ea07e1a4d17393ec93f5c4049a517a93 (patch) | |
tree | cc74fa0759cf47a945569cc27a08c3ed9d05034d /src | |
parent | 6b69f9473b1d3c27698df1b4f68a5b933ad7d352 (diff) |
vppinfra: fallback to builtin memcpy if vector code is not enabled
Type: fix
Fixes: 56f54af
Change-Id: I678ff3622640c911eefb57a9288ef95ed859eeb9
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vppinfra/memcpy_x86_64.h | 5 |
1 files changed, 2 insertions, 3 deletions
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 */ |