This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
|
#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;
|
|
}
|