Files
semi-libc/src/misc/ffsl.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
93 B
C

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