From: Vsevolod Stakhov Date: Sun, 27 Nov 2016 15:23:46 +0000 (+0000) Subject: [Minor] Fix build with clang and BMI X-Git-Tag: 1.4.1~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2a1dc20915e6a0375dbc38761954e1aee383ac98;p=rspamd.git [Minor] Fix build with clang and BMI --- diff --git a/contrib/zstd/bitstream.h b/contrib/zstd/bitstream.h index e96798fe4..9f33c8865 100644 --- a/contrib/zstd/bitstream.h +++ b/contrib/zstd/bitstream.h @@ -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);