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