musl-tcc/src/misc/ffsll.c

8 lines
100 B
C

#include <strings.h>
#include "atomic.h"
int ffsll(long long i)
{
return i ? a_ctz_64(i)+1 : 0;
}