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

int ffsl(long i)
{
	return i ? a_ctz_l(i)+1 : 0;
}