Skip to content

Commit

Permalink
Remove broken bitlog2 and add flag2index
Browse files Browse the repository at this point in the history
  • Loading branch information
Korshun committed Feb 27, 2018
1 parent d91ab80 commit df75cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/acsmath.acs
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ function int getNumDigits(int base, int number)
return digits;
}

function int bitlog2(int x)
function int flag2index(int x)
{
return getNumDigits(2, x);
return getNumDigits(2, x) - 1;
}


Expand Down

0 comments on commit df75cbc

Please sign in to comment.