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,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;