summaryrefslogtreecommitdiff
path: root/src/misc/ffsll.c
blob: 0c5ced826657993210a021f49d76560a03a416d6 (plain)
1
2
3
4
5
6
7
#include <strings.h>
#include "atomic.h"

int ffsll(long long i)
{
	return i ? a_ctz_64(i)+1 : 0;
}