Log2打表

log2函数很慢,因此打表

Log[0]=-1;
for(int i=1;i<=n;i++)Log[i]=Log[i>>1]+1;

猜你喜欢

转载自blog.csdn.net/arliastark/article/details/80783562