fix bit count

This commit is contained in:
Vítor Santos Costa 2015-01-18 03:47:44 +00:00
parent 64da0b138f
commit 771610ffb6

View File

@ -333,16 +333,16 @@ p_first_signal( USES_REGS1 )
if (mask == 0)
return FALSE;
#if HAVE___BUILTIN_FFSLL
x sig = __builtin_ffsll(mask);
sig = __builtin_ffsll(mask);
#elif HAVE_FFSLL
sig = ffsll(mask);
#else
sig = Yap_msb( mask );
sig = Yap_msb( mask )+1;
#endif
if (get_signal(sig PASS_REGS)) {
break;
}
}
}
loop:
switch (sig) {
case YAP_INT_SIGNAL: