From e36270fa7c15b1a47bd7336d09ccc0d7e9e81eec Mon Sep 17 00:00:00 2001 From: Mouse Date: Mon, 4 Jul 2016 13:11:15 -0400 Subject: Do not re-define macros already provided by native compiler --- misc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'misc.h') diff --git a/misc.h b/misc.h index a888deef..3e16e0e1 100644 --- a/misc.h +++ b/misc.h @@ -63,10 +63,18 @@ #if defined(__GNUC__) && defined(__BMI__) # include # if defined(__clang__) +#ifndef _tzcnt_u32 # define _tzcnt_u32(x) __tzcnt_u32(x) +#endif +#ifndef _tzcnt_u64 # define _tzcnt_u64(x) __tzcnt_u64(x) +#endif +#ifndef _blsr_u32 # define _blsr_u32(x) __blsr_u32(x) +#endif +#ifndef _blsr_u64 # define _blsr_u64(x) __blsr_u64(x) +#endif # endif #endif -- cgit v1.2.1