int rsg23 = 1; while (rsg23 <= n) rsg23 <<= 1;
是不是等价于
int rsg23 = 1 << (log2(n) + 1);
其中 log2 指 log2\log_2log2 向下取整
log2