Commit a87ecd5c authored by Benoit Steiner's avatar Benoit Steiner

Optimisation de BinaryLog

parent a5d3d165
......@@ -860,27 +860,12 @@ static int BinaryLog(u32 i)
{
int i_log;
i_log = 0;
if (i & 0xffff0000)
{
i_log = 16;
}
if (i & 0xff00ff00)
{
i_log += 8;
}
if (i & 0xf0f0f0f0)
{
i_log += 4;
}
if (i & 0xcccccccc)
{
i_log += 2;
}
if (i & 0xaaaaaaaa)
{
i_log++;
}
i_log = 16 & (i & 0xffff0000);
i_log += 8 & (i & 0xff00ff00);
i_log += 4 & (i & 0xf0f0f0f0);
i_log += 2 & (i & 0xcccccccc);
i_log += 1 & (i & 0xaaaaaaaa);
if (i != ((u32)1 << i_log))
{
intf_DbgMsg("internal error: binary log overflow");
......
Markdown is supported
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