projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make stdio open, read, and write operations cancellation points
[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
}