Can someone explain what these lines of code are doing?

后端 未结 0 1578
一整个雨季
一整个雨季 2020-12-31 16:11
int64_t lstbt(int64_t val){ 
   int64_t msk = val&(val-1); 
   return log2(val^msk);
}

what does the msk actually compute, and why are we return

相关标签:
回答
  • 消灭零回复
提交回复
热议问题