Einen Teil der Kommentierung wurde entfernt
This commit is contained in:
parent
1e296172e8
commit
0f6dd5b7ae
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ uint Tools::ConvertGrayToBinary(uint x)
|
|||
char r = 0; // r shall contain the position of the first positive bit + 1 in x
|
||||
do // do while --> ceil. while do --> floor.
|
||||
r++;
|
||||
while (x1 >>= 1); // r = ceil(ld(x)) for odd number;ld(x)=ln(x)/ln(2)
|
||||
while (x1 >>= 1); // r = ceil(ld(x))
|
||||
// r = 0 | x = 3 r = 0 | x = 5
|
||||
// 1 | 011 1 | 101
|
||||
// 2 | 001 2 | 010
|
||||
|
|
Loading…
Reference in a new issue