How do I compute how often I can multiply x by 2 until I get y? (both are powers of 2)

前端 未结 0 1256
再見小時候
再見小時候 2021-01-14 06:23

I want to create lists of differently sized blocks. Blocksizes are powers of 2. I have a min and a max blocksize and want to calculate how many lists of blocks I\'ll need. (

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