repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding debian version 3.70~pre8+dfsg-1.
[syslinux-debian/hramrach.git]
/
gpxe
/
src
/
core
/
bitops.c
blob
53abaaeac1416eb573f91cf251b1f85d5d79c7a0
1
#include <strings.h>
2
3
int
__flsl
(
long
x
) {
4
unsigned long
value
=
x
;
5
int
ls
=
0
;
6
7
for
(
ls
=
0
;
value
;
ls
++ ) {
8
value
>>=
1
;
9
}
10
return
ls
;
11
}