build: Add multi-arch autoconf support

Added multi-arch support to configure.ac.
Updated header files to only export sse and avx functions on x86

Change-Id: I4d1f8d0eccabad55ee887dc092a565c468f5c629
Signed-off-by: John Kariuki <John.K.Kariuki@intel.com>
This commit is contained in:
John Kariuki
2018-12-07 02:01:35 -07:00
parent ebab4454ef
commit 2393791654
4 changed files with 201 additions and 176 deletions

View File

@@ -120,6 +120,8 @@ int pq_check(int vects, int len, void **array);
/* Arch specific versions */
// x86 only
#if defined(__i386__) || defined(__x86_64__)
/**
* @brief Generate XOR parity vector from N sources.
@@ -236,6 +238,7 @@ int pq_gen_avx2(int vects, int len, void **array);
int pq_check_sse(int vects, int len, void **array);
#endif
/**
* @brief Generate P+Q parity vectors from N sources, runs baseline version.