bitops.c File Reference

#include <strings.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
int __flsl (long x)


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

int __flsl ( long  x  ) 

Definition at line 5 of file bitops.c.

00005                       {
00006         unsigned long value = x;
00007         int ls = 0;
00008 
00009         for ( ls = 0 ; value ; ls++ ) {
00010                 value >>= 1;
00011         }
00012         return ls;
00013 }


Generated on Tue Apr 6 20:01:14 2010 for gPXE by  doxygen 1.5.7.1