Cross Reference: ffs.c
xref
: /
seL4-refos-master
/
libs
/
libmuslc
/
src
/
misc
/
ffs.c
Home
History
Annotate
Line#
Navigate
Raw
Download
only in
/seL4-refos-master/libs/libmuslc/src/misc/
1
#
include
<
strings.h
>
2
#
include
"
atomic.h
"
3
4
int
ffs
(
int
i)
5
{
6
return
i ?
a_ctz_l
(i)+
1
: 0;
7
}
8