Which is faster, a bitwise operation or a bit shifting operation on any 2 byte integer for Arduino

前端 未结 0 673
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 06:33
\'\'\'
int tmp=2458; // a two byte integer
int q = tmp>>10; //Extract the quotient when divided by 64
q = 0b1111110000000000 & tmp; //Bitwise Op to extract the         


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