Files
semi-libc/src/misc/ffsll.c
T
Rich Felker ecc082c61b implement ffsl and ffsll functions
per the resolution of Austin Group issue #617, these are accepted for
XSI option in POSIX future and thus I'm treating them as standard
functions.
2014-07-31 02:38:23 -04:00

8 lines
100 B
C

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