vppinfra: clib_memcpy optimization 31/3531/3
authorDamjan Marion <[email protected]>
Fri, 21 Oct 2016 17:30:42 +0000 (19:30 +0200)
committerOle Trøan <[email protected]>
Mon, 24 Oct 2016 10:00:58 +0000 (10:00 +0000)
commite319de0b0407cd1e0ebc6ad523b9c608499d8c0c
treecb08798cc0dfad1d29419f2d3270ea41d00567f2
parentd3b85b0157b7c3f69b4ed58ad9dde67281150b54
vppinfra: clib_memcpy optimization

This patch allows copiler to select which SIMD instructions
will be used for copying 16 and 32 byte block.

Immediate effect of this change will occur in avx2 variants of
graph node functions. So far 128 byte registers were used
even in code optimized for avx2 due to macro nature of
clib_memcpy. With this patch gcc should pick 256 byte registers
in such cases.

Change-Id: I3510ee9b3bf01f3f0a9184e1a3f8e1bd827f8eee
Signed-off-by: Damjan Marion <[email protected]>
vppinfra/vppinfra/memcpy_avx.h
vppinfra/vppinfra/memcpy_sse3.h
vppinfra/vppinfra/string.h