summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/memcpy_avx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/memcpy_avx.h')
-rw-r--r--src/vppinfra/memcpy_avx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vppinfra/memcpy_avx.h b/src/vppinfra/memcpy_avx.h
index e3feb76b6b7..d95bbad72b8 100644
--- a/src/vppinfra/memcpy_avx.h
+++ b/src/vppinfra/memcpy_avx.h
@@ -185,6 +185,11 @@ clib_memcpy (void *dst, const void *src, size_t n)
/**
* Fast way when copy size doesn't exceed 512 bytes
*/
+ if (n == 16)
+ {
+ clib_mov16 ((u8 *) dst, (const u8 *) src);
+ return ret;
+ }
if (n <= 32)
{
clib_mov16 ((u8 *) dst, (const u8 *) src);