blob: 6d2994ff8781ca0efcc6211d507a49e1df9cd563 [file] [log] [blame]
#include <strings.h>
#include "atomic.h"
int ffs(int i) {
return i ? a_ctz_l(i) + 1 : 0;
}