From 01015d26dd6a66b2cb39740c05bbb7d5eb0f10a3 Mon Sep 17 00:00:00 2001 From: Guilherme Amadio Date: Fri, 6 Mar 2020 10:46:02 +0100 Subject: [PATCH] Avoid redefinition of _bit_scan_{forward,reverse} macros Fixes #247. --- Vc/common/bitscanintrinsics.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Vc/common/bitscanintrinsics.h b/Vc/common/bitscanintrinsics.h index 625435638..ce419e34c 100644 --- a/Vc/common/bitscanintrinsics.h +++ b/Vc/common/bitscanintrinsics.h @@ -29,11 +29,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define VC_COMMON_BITSCANINTRINSICS_H_ #if defined(Vc_GCC) || defined(Vc_CLANG) || defined(Vc_APPLECLANG) -# if Vc_GCC >= 0x40500 - // GCC 4.5.0 introduced _bit_scan_forward / _bit_scan_reverse -# include -# else - // GCC <= 4.4 and clang have x86intrin.h, but not the required functions +#include +# ifndef _bit_scan_forward # define _bit_scan_forward(x) __builtin_ctz(x) #include "macros.h" static Vc_ALWAYS_INLINE Vc_CONST int _Vc_bit_scan_reverse_asm(unsigned int x) {