Commit 0ef77c12 authored by Matthias Braun's avatar Matthias Braun
Browse files

shorter version

[r15453]
parent 7bf0e722
int floor_log2_wide (unsigned int x)
{
int log = -1;
while (x != 0)
log++, x >>= 1;
return log;
x >>= 1;
return x;
}
int main()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment