Sign in
mojo
/
mojo-tools
/
74b0cac9bdd351dc67c6fc99a7a8b64e85de2f5d
/
.
/
fusl
/
src
/
misc
/
ffs.c
blob: 6d2994ff8781ca0efcc6211d507a49e1df9cd563 [
file
]
#include
<strings.h>
#include
"atomic.h"
int
ffs
(
int
i
)
{
return
i
?
a_ctz_l
(
i
)
+
1
:
0
;
}