Sign in
android
/
platform
/
external
/
syslinux
/
refs/heads/oreo-security-release
/
.
/
gpxe
/
src
/
core
/
bitops.c
blob: 1bca9e47b09b2ea481709b1f7e335cdecbe8cb48 [
file
] [
log
] [
blame
] [
edit
]
#include
<strings.h>
FILE_LICENCE
(
GPL2_OR_LATER
);
int
__flsl
(
long
x
)
{
unsigned
long
value
=
x
;
int
ls
=
0
;
for
(
ls
=
0
;
value
;
ls
++
)
{
value
>>=
1
;
}
return
ls
;
}