ffsll(long long mask)1 int ffsll(long long mask) 2 { 3 int ind = 0; 4 if (mask == 0) 5 return 0; 6 for (ind = 0; !(mask & 1); ind++) 7 mask = (unsigned long long) ind >> 1; 8 return ind; 9 } 10