Sign in
qemu
/
ipxe
/
c44a193d0d147ed6f98741124569864e516e9d4b
/
.
/
src
/
core
/
bitops.c
blob: 1bca9e47b09b2ea481709b1f7e335cdecbe8cb48 [
file
] [
log
] [
blame
]
#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
;
}