[contrib] Allow Network Protocol header to display in rom-o-matic
[gpxe.git] / src / core / bitops.c
blob1bca9e47b09b2ea481709b1f7e335cdecbe8cb48
1 #include <strings.h>
3 FILE_LICENCE ( GPL2_OR_LATER );
5 int __flsl ( long x ) {
6 unsigned long value = x;
7 int ls = 0;
9 for ( ls = 0 ; value ; ls++ ) {
10 value >>= 1;
12 return ls;