Rename e1000_main.c to e1000.c to so we can type 'make bin/e1000.dsk' instead of...
[gpxe.git] / src / core / bitops.c
blob53abaaeac1416eb573f91cf251b1f85d5d79c7a0
1 #include <strings.h>
3 int __flsl ( long x ) {
4 unsigned long value = x;
5 int ls = 0;
7 for ( ls = 0 ; value ; ls++ ) {
8 value >>= 1;
10 return ls;