diff options
author | Gabriel Ganne <gabriel.ganne@enea.com> | 2017-10-23 08:54:50 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2017-10-25 17:18:11 +0000 |
commit | a19d7b822ae9584cde522aefba36915e2af58846 (patch) | |
tree | 599e8a1269b70ab5f63a81a2e22fc4e31ea202bf /src | |
parent | 895b6e8b4408108a9b5cea99dcb378c3524b18b2 (diff) |
Do not include x86intrin.h if unavailable
This fixes compilations on arm platforms.
The call to the function itself was protected, and used clib_xxhash instead.
Only the header protection was missing.
Change-Id: I9fac252a5732e1a9808cf7de93fa3d5f07bcebe6
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vppinfra/cuckoo_8_8.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vppinfra/cuckoo_8_8.h b/src/vppinfra/cuckoo_8_8.h index 127e4e5b76d..608cb0e943c 100644 --- a/src/vppinfra/cuckoo_8_8.h +++ b/src/vppinfra/cuckoo_8_8.h @@ -39,7 +39,9 @@ #define CLIB_CUCKOO_OPTIMIZE_UNROLL 1 #define CLIB_CUCKOO_OPTIMIZE_USE_COUNT_LIMITS_SEARCH 1 +#if __SSE4_2__ && !defined (__i386__) #include <x86intrin.h> +#endif /** 8 octet key, 8 octet key value pair */ typedef struct |