Do not include x86intrin.h if unavailable 52/8952/2
authorGabriel Ganne <gabriel.ganne@enea.com>
Mon, 23 Oct 2017 06:54:50 +0000 (08:54 +0200)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 25 Oct 2017 17:18:11 +0000 (17:18 +0000)
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>
src/vppinfra/cuckoo_8_8.h

index 127e4e5..608cb0e 100644 (file)
@@ -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