acl: deduplicate AVX512 code
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 6 Oct 2020 15:03:14 +0000 (16:03 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 14 Oct 2020 12:37:51 +0000 (14:37 +0200)
commitc5cf148d8915be0559b15aeff1fba649eccd1b5f
tree46fbc0a48e7c62792341ab12072197eb8784392f
parent6fba1c8ba0009a7643ee9388bb7c0e64e33c0a2a
acl: deduplicate AVX512 code

Current rte_acl_classify_avx512x32() and rte_acl_classify_avx512x16()
code paths are very similar. The only differences are due to
256/512 register/instrincts naming conventions.
So to deduplicate the code:
  - Move common code into “acl_run_avx512_common.h”
  - Use macros to hide difference in naming conventions

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_acl/acl_run_avx512_common.h [new file with mode: 0644]
lib/librte_acl/acl_run_avx512x16.h
lib/librte_acl/acl_run_avx512x8.h