Practical applications of bit shifting

前端 未结 4 519
-上瘾入骨i
-上瘾入骨i 2021-01-03 05:33

I totally understand how to shift bits. I\'ve worked through numerous examples on paper and in code and don\'t need any help there.

I\'m trying to come up

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-03 05:48

    1. Quick multiplication and division by a power of 2 - Especially important in embedded applications
    2. CRC computation - Handy for networks e.g. Ethernet
    3. Mathematical calculations that requires very large numbers

    Just a couple off the top of my head

提交回复
热议问题