De Bruijn algorithm binary digit count 64bits C#
问题 Im using the "De Bruijn" Algorithm to discover the number of digits in binary that a big number (up to 64bits) has. For example: 1022 has 10 digits in binary. 130 has 8 digits in binary. I found that using a table lookup based on De Bruijn give me the power to calculate this x100 times faster than conventional ways (power, square, ...). According to this website, 2^6 has the table to calculate the 64 bits numbers. this would be the table exposed in c# static readonly int[]