Use CRC32 instruction only when build for SSE4.2 enabled platforms 72/472/2
authorDamjan Marion <[email protected]>
Thu, 3 Mar 2016 17:22:02 +0000 (18:22 +0100)
committerDamjan Marion <[email protected]>
Thu, 3 Mar 2016 17:42:44 +0000 (18:42 +0100)
This fixes SIGILL crash observed on Penryn CPU

Change-Id: I960878d88f0f088847d4d86605ef082f6600e2c7
Signed-off-by: Damjan Marion <[email protected]>
vppinfra/vppinfra/bihash_24_8.h

index c0dff8c..e2ad8f9 100644 (file)
@@ -38,7 +38,7 @@ static inline int clib_bihash_is_free_24_8 (clib_bihash_kv_24_8_t *v)
   return 0;
 }
 
-#if !defined(__powerpc64__) && !defined(__aarch64__)
+#if __SSE4_2__
 static inline u32
 crc_u32(u32 data, u32 value)
 {