fix bit count
This commit is contained in:
parent
64da0b138f
commit
771610ffb6
@ -333,11 +333,11 @@ p_first_signal( USES_REGS1 )
|
|||||||
if (mask == 0)
|
if (mask == 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
#if HAVE___BUILTIN_FFSLL
|
#if HAVE___BUILTIN_FFSLL
|
||||||
x sig = __builtin_ffsll(mask);
|
sig = __builtin_ffsll(mask);
|
||||||
#elif HAVE_FFSLL
|
#elif HAVE_FFSLL
|
||||||
sig = ffsll(mask);
|
sig = ffsll(mask);
|
||||||
#else
|
#else
|
||||||
sig = Yap_msb( mask );
|
sig = Yap_msb( mask )+1;
|
||||||
#endif
|
#endif
|
||||||
if (get_signal(sig PASS_REGS)) {
|
if (get_signal(sig PASS_REGS)) {
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user