Restore merge of PR #217
pull/215/merge
Mouse 2016-07-06 12:19:44 -04:00 committed by GitHub
parent c6c0bdeebe
commit 9ed99eabb9
1 changed files with 6 additions and 0 deletions

6
misc.h
View File

@ -63,9 +63,15 @@
#if defined(__GNUC__) && defined(__BMI__) #if defined(__GNUC__) && defined(__BMI__)
# include <immintrin.h> # include <immintrin.h>
# if defined(__clang__) # if defined(__clang__)
#ifndef _tzcnt_u32
# define _tzcnt_u32(x) __tzcnt_u32(x) # define _tzcnt_u32(x) __tzcnt_u32(x)
#endif
#ifndef _tzcnt_u64
# define _tzcnt_u64(x) __tzcnt_u64(x) # define _tzcnt_u64(x) __tzcnt_u64(x)
#endif
#ifndef _blsr_u32
# define _blsr_u32(x) __blsr_u32(x) # define _blsr_u32(x) __blsr_u32(x)
#endif
#ifndef _blsr_u64 #ifndef _blsr_u64
# define _blsr_u64(x) __blsr_u64(x) # define _blsr_u64(x) __blsr_u64(x)
# endif # endif