aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/string.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-12-14 09:30:11 +0100
committerDave Barach <openvpp@barachs.net>2017-12-14 13:37:30 +0000
commitfad3fb362cc39fdfcb83e2f8a04e5a7b5a4403ca (patch)
tree5cf092bf2cff466983ddadfa1e516e3a957f5999 /src/vppinfra/string.h
parent73e7f427e8865b0af71740c5ecfa55c7ee78dbd1 (diff)
vppinfra: add AVX512 variant of clib_memcpy
Taken from DPDK, also AVX2 variant updated to be in sync with DPDK version. Change-Id: I8a42e4141a5a1a8cfbee328b07bd0c9b38a9eb05 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/string.h')
-rw-r--r--src/vppinfra/string.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vppinfra/string.h b/src/vppinfra/string.h
index 0e0627d088d..7873e4647d9 100644
--- a/src/vppinfra/string.h
+++ b/src/vppinfra/string.h
@@ -65,8 +65,10 @@ void clib_memswap (void *_a, void *_b, uword bytes);
* so don't let it anywhere near them.
*/
#ifndef __COVERITY__
-#if __AVX__
-#include <vppinfra/memcpy_avx.h>
+#if __AVX512F__
+#include <vppinfra/memcpy_avx512.h>
+#elif __AVX2__
+#include <vppinfra/memcpy_avx2.h>
#elif __SSSE3__
#include <vppinfra/memcpy_sse3.h>
#else