projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yet another ugly legacy syscall rename...
[oweals/musl.git]
/
src
/
misc
/
ffs.c
1
#include <strings.h>
2
3
int ffs(int i)
4
{
5
unsigned int j = i;
6
for (i=1; j && !(j&1); j>>=1, i++);
7
if (j) return i;
8
return 0;
9
}