fixed a wrong build directive in bigint.c
This commit is contained in:
parent
846e29ce06
commit
a2a6bcb90d
@ -190,7 +190,7 @@ static MOO_INLINE int get_pos_of_msb_set (moo_oow_t x)
|
|||||||
return MOO_OOW_BITS - __builtin_clzl(x) - 1; /* count the number of leading zeros */
|
return MOO_OOW_BITS - __builtin_clzl(x) - 1; /* count the number of leading zeros */
|
||||||
#elif defined(MOO_HAVE_BUILTIN_CLZ) && (MOO_SIZEOF_OOW_T == MOO_SIZEOF_INT)
|
#elif defined(MOO_HAVE_BUILTIN_CLZ) && (MOO_SIZEOF_OOW_T == MOO_SIZEOF_INT)
|
||||||
return MOO_OOW_BITS - __builtin_clz(x) - 1; /* count the number of leading zeros */
|
return MOO_OOW_BITS - __builtin_clz(x) - 1; /* count the number of leading zeros */
|
||||||
#elif !defined(__GNUC__) && (defined(__x86_64) || defined(__amd64) || defined(__i386) || defined(i386))
|
#elif defined(__GNUC__) && (defined(__x86_64) || defined(__amd64) || defined(__i386) || defined(i386))
|
||||||
/* bit scan reverse. not all x86 CPUs have LZCNT. */
|
/* bit scan reverse. not all x86 CPUs have LZCNT. */
|
||||||
moo_oow_t pos;
|
moo_oow_t pos;
|
||||||
__asm__ volatile (
|
__asm__ volatile (
|
||||||
|
Loading…
Reference in New Issue
Block a user