acl: deduplicate some SSE and AVX2 code
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 20 Jan 2015 18:41:04 +0000 (18:41 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 28 Jan 2015 16:11:25 +0000 (17:11 +0100)
commita0e3310e7a4f92622f7d86369c8f8e3c389edf18
tree48180f2921801fb2bdcde49b210a12499d0a6ee8
parentcf59b29bb9d908ea8bbc5d4597db9ddd0febef47
acl: deduplicate some SSE and AVX2 code

Vector code reorganisation/deduplication:
To avoid maintaining two nearly identical implementations of calc_addr()
(one for SSE, another for AVX2), replace it with a new macro that suits
both SSE and AVX2 code-paths.
Also remove no needed any more MM_* macros.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_acl/acl_run_avx2.h
lib/librte_acl/acl_run_sse.h
lib/librte_acl/acl_vect.h
lib/librte_eal/common/include/rte_common_vect.h