]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix build with clang and BMI
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 27 Nov 2016 15:23:46 +0000 (15:23 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 27 Nov 2016 15:24:01 +0000 (15:24 +0000)
contrib/zstd/bitstream.h

index e96798fe47b2019c175c2cd5f58c1a79e86960d1..9f33c8865dfa68689966fed5c4534e7a80baeff0 100644 (file)
@@ -298,7 +298,7 @@ MEM_STATIC size_t BIT_getUpperBits(size_t bitContainer, U32 const start)
 
 MEM_STATIC size_t BIT_getMiddleBits(size_t bitContainer, U32 const start, U32 const nbBits)
 {
-#if defined(__BMI__) && defined(__GNUC__)   /* experimental */
+#if defined(__BMI__) && defined(__GNUC__) && !defined(__llvm__)  /* experimental */
 #  if defined(__x86_64__)
     if (sizeof(bitContainer)==8)
         return _bextr_u64(bitContainer, start, nbBits);